Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pkgs/by-name/ve/versionCheckHook/hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _handleCmdOutput(){
done
fi

versionOutput="$(env \
versionOutput="$(@envCommand@ \
--chdir=/ \
--argv0="$(basename "${command[0]}")" \
"${envArgs[@]}" \
Expand Down
2 changes: 2 additions & 0 deletions pkgs/by-name/ve/versionCheckHook/package.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
lib,
makeSetupHook,
coreutils,
}:

makeSetupHook {
name = "version-check-hook";
substitutions = {
storeDir = builtins.storeDir;
envCommand = lib.getExe' coreutils "env"; # Cannot call it env, because it isn't an attrset of environment variables!
};
meta = {
description = "Lookup for $version in the output of --help and --version";
Expand Down
14 changes: 14 additions & 0 deletions pkgs/tools/compression/gzip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
makeShellWrapper,
updateAutotoolsGnuConfigScriptsHook,
runtimeShellPackage,
# Tests
gzip,
less,
perl,
}:

# Note: this package is used for bootstrapping fetchurl, and thus
Expand Down Expand Up @@ -44,6 +48,12 @@ stdenv.mkDerivation rec {
"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 @@ -60,6 +70,10 @@ stdenv.mkDerivation rec {
--add-flags "\''${GZIP_NO_TIMESTAMPS:+-n}"
'';

passthru = {
tests.makecheck = gzip.overrideAttrs { doCheck = true; };
};

meta = {
homepage = "https://www.gnu.org/software/gzip/";
description = "GNU zip compression program";
Expand Down
Loading