mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Add EvalState::getBuiltins
This commit is contained in:
parent
a58e38dab7
commit
8a36d2d8a7
4 changed files with 43 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue