From ad97a218344937d8586d0f4f710f3785da77f5bd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 8 Feb 2018 15:25:03 +0100 Subject: nix-env: Fix parsing of --system https://hydra.nixos.org/build/68827814 --- src/libmain/common-args.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libmain') 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); } -- cgit v1.2.3