mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
nix: Add --impure as a shorter alias of --no-pure-eval
This commit is contained in:
parent
6a4c7fb975
commit
ee1254d4f5
6 changed files with 49 additions and 42 deletions
|
@ -289,7 +289,7 @@ static std::tuple<FlakeId, std::map<FlakeId, Flake>> resolveFlake(EvalState & st
|
|||
|
||||
#if 0
|
||||
if (evalSettings.pureEval && !flakeRef.isImmutable() && (!toplevel || !impureTopRef))
|
||||
throw Error("mutable flake '%s' is not allowed in pure mode; use --no-pure-eval to disable", flakeRef.to_string());
|
||||
throw Error("mutable flake '%s' is not allowed in pure mode; use --impure to disable", flakeRef.to_string());
|
||||
#endif
|
||||
|
||||
auto flake = getFlake(state, flakeRef);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue