Skip to content

Commit 413abbf

Browse files
committed
cudaPackages.buildRedist: conditionally depend on removeStubsFromRunpathHook
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
1 parent d2f2407 commit 413abbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/development/cuda-modules/buildRedist/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,14 @@ extendMkDerivation {
343343
inherit allowFHSReferences;
344344
inherit includeRemoveStubsFromRunpathHook;
345345

346-
postFixup = postFixup + ''
347-
if [[ -n "''${includeRemoveStubsFromRunpathHook:-}" ]] ; then
346+
postFixup =
347+
postFixup
348+
+ optionalString finalAttrs.includeRemoveStubsFromRunpathHook ''
348349
nixLog "installing stub removal runpath hook"
349350
mkdir -p "''${!outputStubs:?}/nix-support"
350351
printWords >>"''${!outputStubs:?}/nix-support/propagated-build-inputs" \
351352
"${getDev removeStubsFromRunpathHook}"
352-
fi
353-
'';
353+
'';
354354

355355
passthru = passthru // {
356356
inherit redistName release;

0 commit comments

Comments
 (0)