|
6 | 6 | ninja, |
7 | 7 | nv-codec-headers-12, |
8 | 8 | fetchFromGitHub, |
| 9 | + fetchpatch, |
9 | 10 | addDriverRunpath, |
10 | 11 | autoAddDriverRunpath, |
11 | 12 | cudaSupport ? config.cudaSupport, |
|
38 | 39 | alsa-lib, |
39 | 40 | pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux, |
40 | 41 | libpulseaudio, |
41 | | - browserSupport ? false, # FIXME: broken |
| 42 | + browserSupport ? true, |
42 | 43 | libcef, |
43 | 44 | pciutils, |
44 | 45 | pipewireSupport ? stdenv.hostPlatform.isLinux, |
@@ -84,6 +85,33 @@ stdenv.mkDerivation (finalAttrs: { |
84 | 85 | # Lets obs-browser build against CEF 90.1.0+ |
85 | 86 | ./Enable-file-access-and-universal-access-for-file-URL.patch |
86 | 87 | ./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 | + }) |
87 | 115 | ]; |
88 | 116 |
|
89 | 117 | nativeBuildInputs = |
|
0 commit comments