From 4eae7523f08dfe967bf9bf319dba97f21f62c3b2 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Tue, 7 Nov 2023 19:56:47 +0000 Subject: cudaPackages.cuda-samples: switch to autoAddOpenGLRunpathHook from manual addOpenGLRunpath --- pkgs/test/cuda/cuda-samples/generic.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'pkgs/test') diff --git a/pkgs/test/cuda/cuda-samples/generic.nix b/pkgs/test/cuda/cuda-samples/generic.nix index ed839da54da38..e57be1723436e 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. -- cgit 1.4.1