mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Require flake.nix to be an attrset (not a non-trivial thunk)
This commit is contained in:
parent
c87840ae14
commit
f97d3753a1
4 changed files with 28 additions and 8 deletions
|
@ -157,8 +157,9 @@ public:
|
|||
Expr * parseStdin();
|
||||
|
||||
/* Evaluate an expression read from the given file to normal
|
||||
form. */
|
||||
void evalFile(const Path & path, Value & v);
|
||||
form. Optionally enforce that the top-level expression is
|
||||
trivial (i.e. doesn't require arbitrary computation). */
|
||||
void evalFile(const Path & path, Value & v, bool mustBeTrivial = false);
|
||||
|
||||
void resetFileCache();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue