From e073f2c584a42a2029e9196a01e9747ed46f6a0c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 8 Jun 2020 16:23:54 +0200 Subject: [PATCH] nix flake: Require 'flakes' feature --- src/nix/flake.cc | 1 + 1 file changed, 1 insertion(+) 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(); }