about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/li/libvpl/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/li/libvpl/package.nix')
-rw-r--r--nixpkgs/pkgs/by-name/li/libvpl/package.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/li/libvpl/package.nix b/nixpkgs/pkgs/by-name/li/libvpl/package.nix
index 8a647916ca63..f28287053beb 100644
--- a/nixpkgs/pkgs/by-name/li/libvpl/package.nix
+++ b/nixpkgs/pkgs/by-name/li/libvpl/package.nix
@@ -3,6 +3,8 @@
 , fetchFromGitHub
 , cmake
 , pkg-config
+, substituteAll
+, addDriverRunpath
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -32,6 +34,13 @@ stdenv.mkDerivation (finalAttrs: {
       "-DBUILD_TOOLS=OFF"
   ];
 
+  patches = [
+    (substituteAll {
+      src = ./opengl-driver-lib.patch;
+      inherit (addDriverRunpath) driverLink;
+    })
+  ];
+
   meta = with lib; {
     description = "Intel Video Processing Library";
     homepage = "https://intel.github.io/libvpl/";