gzip: build and install zless which went missing in gzip-1.12

Fixes https://github.com/NixOS/nixpkgs/issues/187697
This commit is contained in:
Ivan Kozik 2022-08-21 08:25:17 +00:00
parent 2817fc3244
commit 23e5407bd4

View File

@ -24,7 +24,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ xz.bin ];
makeFlags = [ "SHELL=/bin/sh" "GREP=grep" ];
makeFlags = [
"SHELL=/bin/sh"
"GREP=grep"
# gzip 1.12 doesn't build `zless` unless it can find `less`, but we
# can avoid having `less` as a build input if we just override these.
"ZLESS_MAN=zless.1"
"ZLESS_PROG=zless"
];
# Many gzip executables are shell scripts that depend upon other gzip
# executables being in $PATH. Rather than try to re-write all the