aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-08 16:23:54 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-08 16:23:54 +0200
commite073f2c584a42a2029e9196a01e9747ed46f6a0c (patch)
tree6d8e9415d33d2934e0d6574042d16b5ad4a28964
parent6470450ab48196668099eeca2f171fec110d647b (diff)
nix flake: Require 'flakes' feature
-rw-r--r--src/nix/flake.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 57ce996cd..865ac8cb8 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -934,6 +934,7 @@ struct CmdFlake : virtual MultiCommand, virtual Command
{
if (!command)
throw UsageError("'nix flake' requires a sub-command.");
+ settings.requireExperimentalFeature("flakes");
command->second->prepare();
command->second->run();
}