diff --git a/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash b/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash index 30b5ab5ca1e8..afd838df4e31 100644 --- a/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash +++ b/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash @@ -161,11 +161,8 @@ checkCudaHasStubsIffIncludeRemoveStubsFromRunpathHook() { hasStubs=1 fi - # The dependency should be recorded in both propagated-native-build-inputs and propagated-build-inputs, so the - # hook is propagated regardless of which dependency array includes the stubs-providing output. hasRemoveStubsFromRunpathHook=0 - if grep --silent --no-messages removeStubsFromRunpathHook "${!outputName:?}/nix-support/propagated-build-inputs" - then + if grep --silent --no-messages removeStubsFromRunpathHook "${!outputName:?}/nix-support/propagated-build-inputs"; then hasRemoveStubsFromRunpathHook=1 fi