google-cloud-sdk: remove original package from extra-components closures (#266579)

This is a difference of ~444 megabytes.
This commit is contained in:
Nick Novitski 2023-11-15 02:27:27 -08:00 committed by GitHub
parent 229ee1db66
commit 68baab123f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ runCommand "google-cloud-sdk-${google-cloud-sdk.version}"
passAsFile = [ "comps" ];
doInstallCheck = true;
disallowedRequisites = [ google-cloud-sdk ];
installCheckPhase =
let
compNames = builtins.map (drv: drv.name) comps_;
@ -57,5 +58,5 @@ runCommand "google-cloud-sdk-${google-cloud-sdk.version}"
done
# Replace references to the original google-cloud-sdk with this one
find $out/google-cloud-sdk/bin/ -type f -exec sed -i -e "s#${google-cloud-sdk}#$out#" {} \;
find $out/google-cloud-sdk -type f -exec sed -i -e "s#${google-cloud-sdk}#$out#" {} \;
''