1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

Add EvalState::getBuiltins

This commit is contained in:
Robert Hensing 2024-11-19 18:23:05 +01:00
parent a58e38dab7
commit 8a36d2d8a7
4 changed files with 43 additions and 2 deletions

View file

@ -40,6 +40,12 @@ namespace nix {
return v;
}
Value * maybeThunk(std::string input, bool forceValue = true) {
Expr * e = state.parseExprFromString(input, state.rootPath(CanonPath::root));
assert(e);
return e->maybeThunk(state, state.baseEnv);
}
Symbol createSymbol(const char * value) {
return state.symbols.create(value);
}