Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pkgs/tools/compression/gzip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
updateAutotoolsGnuConfigScriptsHook,
runtimeShellPackage,
directoryListingUpdater,
# Tests
gzip,
less,
perl,
}:

# Note: this package is used for bootstrapping fetchurl, and thus
Expand Down Expand Up @@ -45,6 +49,12 @@ stdenv.mkDerivation (finalAttrs: {
"ZLESS_PROG=zless"
];

nativeCheckInputs = [
less
perl
];
doCheck = false;

# 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
Expand All @@ -62,6 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
'';

passthru = {
tests.makecheck = gzip.overrideAttrs { doCheck = true; };
updateScript = directoryListingUpdater {
inherit (finalAttrs) pname version;
url = "https://ftp.gnu.org/gnu/gzip/";
Expand Down
Loading