From 23e5407bd45f0364263d53b534bf2823abd9e24d Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Sun, 21 Aug 2022 08:25:17 +0000 Subject: [PATCH] gzip: build and install zless which went missing in gzip-1.12 Fixes https://github.com/NixOS/nixpkgs/issues/187697 --- pkgs/tools/compression/gzip/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/compression/gzip/default.nix b/pkgs/tools/compression/gzip/default.nix index bd28ca63e80a..771188a98cd9 100644 --- a/pkgs/tools/compression/gzip/default.nix +++ b/pkgs/tools/compression/gzip/default.nix @@ -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