nix flake: Require 'flakes' feature

This commit is contained in:
Eelco Dolstra 2020-06-08 16:23:54 +02:00
parent 6470450ab4
commit e073f2c584

View file

@ -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();
}