forked from lix-project/lix
nix-env: Fix parsing of --system
https://hydra.nixos.org/build/68827814
This commit is contained in:
parent
444bae44ef
commit
ad97a21834
|
@ -37,6 +37,10 @@ MixCommonArgs::MixCommonArgs(const string & programName)
|
||||||
|
|
||||||
std::string cat = "config";
|
std::string cat = "config";
|
||||||
settings.convertToArgs(*this, cat);
|
settings.convertToArgs(*this, cat);
|
||||||
|
|
||||||
|
// Backward compatibility hack: nix-env already had a --system flag.
|
||||||
|
if (programName == "nix-env") longFlags.erase("system");
|
||||||
|
|
||||||
hiddenCategories.insert(cat);
|
hiddenCategories.insert(cat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,9 @@ rm -f $HOME/.nix-defexpr
|
||||||
ln -s $(pwd)/user-envs.nix $HOME/.nix-defexpr
|
ln -s $(pwd)/user-envs.nix $HOME/.nix-defexpr
|
||||||
nix-env -qa '*' --description | grep -q silly
|
nix-env -qa '*' --description | grep -q silly
|
||||||
|
|
||||||
|
# Query the system.
|
||||||
|
nix-env -qa '*' --system | grep -q $system
|
||||||
|
|
||||||
# Install "foo-1.0".
|
# Install "foo-1.0".
|
||||||
nix-env -i foo-1.0
|
nix-env -i foo-1.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue