about summary refs log tree commit diff
path: root/pkgs/development/libraries/gstreamer/bad/default.nix
diff options
context:
space:
mode:
authorKiskae <Kiskae@users.noreply.github.com>2022-09-05 14:19:55 +0200
committerKiskae <Kiskae@users.noreply.github.com>2022-09-06 18:01:12 +0200
commitd5436fa98677d5d63cc5597f76d556f3fe655e6d (patch)
tree495453f3f9c78100feadf71935d3de991117972c /pkgs/development/libraries/gstreamer/bad/default.nix
parent9b929a72368025d25a049fcc2b57eb2decb8ac65 (diff)
gst-plugins-bad: patch nvidia runtime paths
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 be7509d4cfbf2..7d8c3a3ce051f 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
@@ -77,6 +78,7 @@
 , mjpegtools
 , libGLU
 , libGL
+, addOpenGLRunpath
 , libintl
 , game-music-emu
 , openssl
@@ -107,6 +109,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