cudaPackages.cuda-samples: switch to autoAddOpenGLRunpathHook from manual addOpenGLRunpath
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user