git: remove runtime dependency on gcc
Reduces gitMinimal closure size from 329.6M to 174.8M. Fixes the issue https://github.com/NixOS/nixpkgs/issues/64350. In git 2.22.0 git-stash is no longer a shell script and now it is just a symlink to git. `postInstall` assumed that it was a shell script, tried to patch it and ended up corrupting the file and made `strip` refuse stripping it.
This commit is contained in:
parent
d5dc9a2140
commit
ea688c051d
@ -164,7 +164,7 @@ stdenv.mkDerivation {
|
|||||||
EOS
|
EOS
|
||||||
)"
|
)"
|
||||||
perl -0777 -i -pe "$SCRIPT" \
|
perl -0777 -i -pe "$SCRIPT" \
|
||||||
$out/libexec/git-core/git-{sh-setup,filter-branch,merge-octopus,mergetool,quiltimport,request-pull,stash,submodule,subtree,web--browse}
|
$out/libexec/git-core/git-{sh-setup,filter-branch,merge-octopus,mergetool,quiltimport,request-pull,submodule,subtree,web--browse}
|
||||||
|
|
||||||
|
|
||||||
# Also put git-http-backend into $PATH, so that we can use smart
|
# Also put git-http-backend into $PATH, so that we can use smart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user