Skip to content

Commit 1fbed70

Browse files
authored
obs-studio: enable browser support (#394827)
2 parents 4e0e0ba + 524f721 commit 1fbed70

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

pkgs/applications/video/obs-studio/default.nix

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
ninja,
77
nv-codec-headers-12,
88
fetchFromGitHub,
9+
fetchpatch,
910
addDriverRunpath,
1011
autoAddDriverRunpath,
1112
cudaSupport ? config.cudaSupport,
@@ -38,7 +39,7 @@
3839
alsa-lib,
3940
pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux,
4041
libpulseaudio,
41-
browserSupport ? false, # FIXME: broken
42+
browserSupport ? true,
4243
libcef,
4344
pciutils,
4445
pipewireSupport ? stdenv.hostPlatform.isLinux,
@@ -84,6 +85,33 @@ stdenv.mkDerivation (finalAttrs: {
8485
# Lets obs-browser build against CEF 90.1.0+
8586
./Enable-file-access-and-universal-access-for-file-URL.patch
8687
./fix-nix-plugin-path.patch
88+
# TODO: remove when CHROME_VERSION_BUILD(libcef) >= 6367
89+
(fetchpatch {
90+
name = "Check-source-validity-before-attempting-to-log-rende.patch";
91+
url = "https://github.com/obsproject/obs-browser/pull/478.patch";
92+
revert = true;
93+
stripLen = 1;
94+
extraPrefix = "plugins/obs-browser/";
95+
hash = "sha256-mQVhK4r8LlK2F9/jlDHA1V6M29mAfxWAU/VsMXYNrhU=";
96+
})
97+
# TODO: remove when CHROME_VERSION_BUILD(libcef) >= 6367
98+
(fetchpatch {
99+
name = "Print-browser-source-renderer-crashes-to-OBS-log.patch";
100+
url = "https://github.com/obsproject/obs-browser/pull/475.patch";
101+
revert = true;
102+
stripLen = 1;
103+
extraPrefix = "plugins/obs-browser/";
104+
hash = "sha256-ha77OYpWn57JovPNE+izyDOB/2KlF3qWVv/PGEgyu84=";
105+
})
106+
# TODO: remove when CHROME_VERSION_BUILD(libcef) >= 6367
107+
(fetchpatch {
108+
name = "Log-error-if-CefInitialize-fails.patch.patch";
109+
url = "https://github.com/obsproject/obs-browser/pull/477.patch";
110+
revert = true;
111+
stripLen = 1;
112+
extraPrefix = "plugins/obs-browser/";
113+
hash = "sha256-MMLFQtpWjfpti/38qEcOuXr1L3s1MPRHjuaZCjNmvt0=";
114+
})
87115
];
88116

89117
nativeBuildInputs =

0 commit comments

Comments
 (0)