diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-02-08T14·25+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-02-08T14·25+0100 |
commit | ad97a218344937d8586d0f4f710f3785da77f5bd (patch) | |
tree | 2d1645a485979688b6cbb51b07733832e26c5982 /src | |
parent | 444bae44ef3c27959d837d2e1f28131290cb52a7 (diff) |
nix-env: Fix parsing of --system
https://hydra.nixos.org/build/68827814
Diffstat (limited to 'src')
-rw-r--r-- | src/libmain/common-args.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmain/common-args.cc b/src/libmain/common-args.cc index d3aac6aba1ff..bcc05c2cdad6 100644 --- a/src/libmain/common-args.cc +++ b/src/libmain/common-args.cc @@ -37,6 +37,10 @@ MixCommonArgs::MixCommonArgs(const string & programName) std::string cat = "config"; settings.convertToArgs(*this, cat); + + // Backward compatibility hack: nix-env already had a --system flag. + if (programName == "nix-env") longFlags.erase("system"); + hiddenCategories.insert(cat); } |