gzip: Don't depend on gzip being in $PATH
This commit is contained in:
parent
9fe2f2565e
commit
d2d7fbc431
@ -17,6 +17,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
makeFlags = [ "SHELL=/bin/sh" "GREP=grep" ];
|
makeFlags = [ "SHELL=/bin/sh" "GREP=grep" ];
|
||||||
|
|
||||||
|
# Many gzip executables are shell scripts that depend upon other gzip
|
||||||
|
# executables being in $PATH. Rather than try to re-write all the
|
||||||
|
# internal cross-references, just add $out/bin to PATH at the top of
|
||||||
|
# all the executables that are shell scripts.
|
||||||
|
preFixup = ''
|
||||||
|
sed -i '1{;/#!\/bin\/sh/aPATH="'$out'/bin:$PATH"
|
||||||
|
}' $out/bin/*
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://www.gnu.org/software/gzip/";
|
homepage = "https://www.gnu.org/software/gzip/";
|
||||||
description = "GNU zip compression program";
|
description = "GNU zip compression program";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user