versionCheckHook: use current coreutils env (#474203)
This commit is contained in:
@@ -10,7 +10,7 @@ _handleCmdOutput(){
|
||||
done
|
||||
fi
|
||||
|
||||
versionOutput="$(env \
|
||||
versionOutput="$(@envCommand@ \
|
||||
--chdir=/ \
|
||||
--argv0="$(basename "${command[0]}")" \
|
||||
"${envArgs[@]}" \
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user