diff --git a/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash b/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash index afd838df4e31..2a2ca6d257a4 100644 --- a/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash +++ b/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash @@ -157,7 +157,8 @@ checkCudaHasStubsIffIncludeRemoveStubsFromRunpathHook() { for outputName in $(getAllOutputNames); do hasStubs=0 - if find "${!outputName:?}" -mindepth 1 -type d -name stubs -print -quit | grep --silent .; then + if [[ $outputName == "stubs" ]] || + find "${!outputName:?}" -mindepth 1 -type d -name stubs -print -quit | grep --silent .; then hasStubs=1 fi