aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-08 15:25:03 +0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-08 15:25:03 +0100
commitad97a218344937d8586d0f4f710f3785da77f5bd (patch)
tree2d1645a485979688b6cbb51b07733832e26c5982 /src
parent444bae44ef3c27959d837d2e1f28131290cb52a7 (diff)
nix-env: Fix parsing of --system
https://hydra.nixos.org/build/68827814
Diffstat (limited to 'src')
-rw-r--r--src/libmain/common-args.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmain/common-args.cc b/src/libmain/common-args.cc
index d3aac6aba..bcc05c2cd 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);
}