This commit is contained in:
Eelco Dolstra 2022-05-12 20:47:27 +02:00
parent 9411299875
commit 212e28d945
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -23,7 +23,7 @@ namespace nix {
} }
Value eval(std::string input, bool forceValue = true) { Value eval(std::string input, bool forceValue = true) {
Value v; Value v;
Expr * e = state.parseExprFromString(input, ""); Expr * e = state.parseExprFromString(input, state.rootPath("/"));
assert(e); assert(e);
state.eval(e, v); state.eval(e, v);
if (forceValue) if (forceValue)