cudaPackages.buildRedist: put removeStubsFromRunpathHook in propagated-build-inputs
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
@@ -164,9 +164,7 @@ checkCudaHasStubsIffIncludeRemoveStubsFromRunpathHook() {
|
||||
# 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-native-build-inputs" &&
|
||||
grep --silent --no-messages removeStubsFromRunpathHook "${!outputName:?}/nix-support/propagated-build-inputs"
|
||||
if grep --silent --no-messages removeStubsFromRunpathHook "${!outputName:?}/nix-support/propagated-build-inputs"
|
||||
then
|
||||
hasRemoveStubsFromRunpathHook=1
|
||||
fi
|
||||
|
||||
@@ -343,16 +343,14 @@ extendMkDerivation {
|
||||
inherit allowFHSReferences;
|
||||
inherit includeRemoveStubsFromRunpathHook;
|
||||
|
||||
postFixup =
|
||||
postFixup
|
||||
+ optionalString finalAttrs.includeRemoveStubsFromRunpathHook ''
|
||||
postFixup = postFixup + ''
|
||||
if [[ -n "''${includeRemoveStubsFromRunpathHook:-}" ]] ; then
|
||||
nixLog "installing stub removal runpath hook"
|
||||
mkdir -p "''${!outputStubs:?}/nix-support"
|
||||
printWords >>"''${!outputStubs:?}/nix-support/propagated-native-build-inputs" \
|
||||
"${getDev removeStubsFromRunpathHook.__spliced.buildHost or removeStubsFromRunpathHook}"
|
||||
printWords >>"''${!outputStubs:?}/nix-support/propagated-build-inputs" \
|
||||
"${getDev removeStubsFromRunpathHook.__spliced.hostTarget or removeStubsFromRunpathHook}"
|
||||
'';
|
||||
"${getDev removeStubsFromRunpathHook}"
|
||||
fi
|
||||
'';
|
||||
|
||||
passthru = passthru // {
|
||||
inherit redistName release;
|
||||
|
||||
Reference in New Issue
Block a user