mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +01:00
nix flake: Require 'flakes' feature
This commit is contained in:
parent
6470450ab4
commit
e073f2c584
1 changed files with 1 additions and 0 deletions
|
|
@ -934,6 +934,7 @@ struct CmdFlake : virtual MultiCommand, virtual Command
|
||||||
{
|
{
|
||||||
if (!command)
|
if (!command)
|
||||||
throw UsageError("'nix flake' requires a sub-command.");
|
throw UsageError("'nix flake' requires a sub-command.");
|
||||||
|
settings.requireExperimentalFeature("flakes");
|
||||||
command->second->prepare();
|
command->second->prepare();
|
||||||
command->second->run();
|
command->second->run();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue