mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 04:56:01 +01: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