summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorConnor Baker <connor.baker@tweag.io>2023-11-07 19:56:47 +0000
committerConnor Baker <connor.baker@tweag.io>2023-11-07 19:56:47 +0000
commit4eae7523f08dfe967bf9bf319dba97f21f62c3b2 (patch)
treeb07364401a5f29ed9318bf8cafed715d310d6ee1 /pkgs/test
parent25fa662d3eef2c89fce6e072dba9bc17867c06c4 (diff)
downloadnixpkgs-4eae7523f08dfe967bf9bf319dba97f21f62c3b2.tar
nixpkgs-4eae7523f08dfe967bf9bf319dba97f21f62c3b2.tar.gz
nixpkgs-4eae7523f08dfe967bf9bf319dba97f21f62c3b2.tar.bz2
nixpkgs-4eae7523f08dfe967bf9bf319dba97f21f62c3b2.tar.lz
nixpkgs-4eae7523f08dfe967bf9bf319dba97f21f62c3b2.tar.xz
nixpkgs-4eae7523f08dfe967bf9bf319dba97f21f62c3b2.tar.zst
nixpkgs-4eae7523f08dfe967bf9bf319dba97f21f62c3b2.zip
cudaPackages.cuda-samples: switch to autoAddOpenGLRunpathHook from manual addOpenGLRunpath
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/cuda/cuda-samples/generic.nix10
1 files changed, 2 insertions, 8 deletions
diff --git a/pkgs/test/cuda/cuda-samples/generic.nix b/pkgs/test/cuda/cuda-samples/generic.nix
index ed839da54da..e57be172343 100644
--- a/pkgs/test/cuda/cuda-samples/generic.nix
+++ b/pkgs/test/cuda/cuda-samples/generic.nix
@@ -2,7 +2,7 @@
 , cudaPackages
 , fetchFromGitHub
 , fetchpatch
-, addOpenGLRunpath
+, autoAddOpenGLRunpathHook
 , cudatoolkit
 , pkg-config
 , sha256
@@ -20,7 +20,7 @@ cudaPackages.backendStdenv.mkDerivation (finalAttrs: {
     inherit sha256;
   };
 
-  nativeBuildInputs = [ pkg-config addOpenGLRunpath glfw3 freeimage ];
+  nativeBuildInputs = [ pkg-config autoAddOpenGLRunpathHook glfw3 freeimage ];
 
   buildInputs = [ cudatoolkit ];
 
@@ -46,12 +46,6 @@ cudaPackages.backendStdenv.mkDerivation (finalAttrs: {
     runHook postInstall
   '';
 
-  postFixup = ''
-    for exe in $out/bin/*; do
-      addOpenGLRunpath $exe
-    done
-  '';
-
   meta = {
     description = "Samples for CUDA Developers which demonstrates features in CUDA Toolkit";
     # CUDA itself is proprietary, but these sample apps are not.