diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-08 16:23:54 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-06-08 16:23:54 +0200 |
commit | e073f2c584a42a2029e9196a01e9747ed46f6a0c (patch) | |
tree | 6d8e9415d33d2934e0d6574042d16b5ad4a28964 /src/nix | |
parent | 6470450ab48196668099eeca2f171fec110d647b (diff) |
nix flake: Require 'flakes' feature
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/flake.cc | 1 |
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(); } |