about summary refs log tree commit diff
path: root/pkgs/development/libraries/gstreamer/bad/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2022-09-28 09:58:48 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2022-09-28 09:58:48 +0200
commitbfff65312a6aa29310f1fc0d495b8eb52fbe6d0d (patch)
treee145ae156a9172593e0118519a29fcba1ff74c9d /pkgs/development/libraries/gstreamer/bad/default.nix
parent292756e9fff8c77e336040323b50b4aee84cd999 (diff)
parentd5436fa98677d5d63cc5597f76d556f3fe655e6d (diff)
Merge #190023: gst-plugins-bad: patch nvcodec to check opengl path
...into staging
Diffstat (limited to 'pkgs/development/libraries/gstreamer/bad/default.nix')
-rw-r--r--pkgs/development/libraries/gstreamer/bad/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix
index 63c0adcf378d1..e9f324b245336 100644
--- a/pkgs/development/libraries/gstreamer/bad/default.nix
+++ b/pkgs/development/libraries/gstreamer/bad/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchurl
+, substituteAll
 , meson
 , ninja
 , gettext
@@ -78,6 +79,7 @@
 , mjpegtools
 , libGLU
 , libGL
+, addOpenGLRunpath
 , libintl
 , game-music-emu
 , openssl
@@ -109,6 +111,14 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-ehHBO1XdHSOG3ZAiGeQcv83ajh4Ko+c4GGyVB0s12k8=";
   };
 
+  patches = [
+    # Add fallback paths for nvidia userspace libraries
+    (substituteAll {
+      src = ./fix-paths.patch;
+      inherit (addOpenGLRunpath) driverLink;
+    })
+  ];
+
   nativeBuildInputs = [
     meson
     ninja