aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-16 17:45:09 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-16 17:49:01 +0200
commit8e478c234100cf03ea1b777d4bd42a9be7be9e8c (patch)
tree5872e28ca97ba859ba37fb116132ebd3854989bf /src/nix
parenta56036fa872d86b09586c41ead475d537b6df0a3 (diff)
Add experimental-features setting
Experimental features are now opt-in. There are currently two experimental features: "nix-command" (which enables the "nix" command), and "flakes" (which enables support for flakes). This will allow us to merge experimental features more quickly, without committing to supporting them indefinitely. Typical usage: $ nix build --experimental-features 'nix-command flakes' nixpkgs#hello
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index eedf8656e..8cdeed8f5 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -149,6 +149,8 @@ void mainWrapped(int argc, char * * argv)
args.parseCmdline(argvToStrings(argc, argv));
+ settings.requireExperimentalFeature("nix-command");
+
initPlugins();
if (!args.command) args.showHelpAndExit();