From 413abbfe75a776b3db48510dab358766486ea800 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Wed, 26 Nov 2025 01:26:36 +0000 Subject: [PATCH] cudaPackages.buildRedist: conditionally depend on removeStubsFromRunpathHook Signed-off-by: Connor Baker --- pkgs/development/cuda-modules/buildRedist/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/cuda-modules/buildRedist/default.nix b/pkgs/development/cuda-modules/buildRedist/default.nix index 831920a57e30..e04ca914ad9d 100644 --- a/pkgs/development/cuda-modules/buildRedist/default.nix +++ b/pkgs/development/cuda-modules/buildRedist/default.nix @@ -343,14 +343,14 @@ extendMkDerivation { inherit allowFHSReferences; inherit includeRemoveStubsFromRunpathHook; - postFixup = postFixup + '' - if [[ -n "''${includeRemoveStubsFromRunpathHook:-}" ]] ; then + postFixup = + postFixup + + optionalString finalAttrs.includeRemoveStubsFromRunpathHook '' nixLog "installing stub removal runpath hook" mkdir -p "''${!outputStubs:?}/nix-support" printWords >>"''${!outputStubs:?}/nix-support/propagated-build-inputs" \ "${getDev removeStubsFromRunpathHook}" - fi - ''; + ''; passthru = passthru // { inherit redistName release;