Require flake.nix to be an attrset (not a non-trivial thunk)

This commit is contained in:
Eelco Dolstra
2019-09-09 17:34:38 +02:00
parent c87840ae14
commit f97d3753a1
4 changed files with 28 additions and 8 deletions
+3 -2
View File
@@ -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();