aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-28 12:55:24 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-05-28 12:55:24 +0200
commit17ca997fc6875071c7c0027b7a23c732c3ad02ee (patch)
treecf820d38955dee7cf33b36502f5b62b78b466a95 /src/nix
parentc3eff22f46cc05ddae4f648413ab115edb817ef9 (diff)
parentd2a537568a7ed3fa8bee63c4298b771a27fdad89 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/main.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index fffdeab90..94fd33244 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -183,12 +183,15 @@ void mainWrapped(int argc, char * * argv)
if (completions) return;
- settings.requireExperimentalFeature("nix-command");
-
initPlugins();
if (!args.command) args.showHelpAndExit();
+ if (args.command->first != "repl"
+ && args.command->first != "doctor"
+ && args.command->first != "upgrade-nix")
+ settings.requireExperimentalFeature("nix-command");
+
Finally f([]() { stopProgressBar(); });
startProgressBar(args.printBuildLogs);