mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Move restricted/pure-eval access control out of the evaluator and into the accessor
This commit is contained in:
parent
3bebaefcd0
commit
ea95327e72
8 changed files with 115 additions and 171 deletions
|
@ -260,9 +260,10 @@ void SourceExprCommand::completeInstallable(AddCompletions & completions, std::s
|
|||
|
||||
evalSettings.pureEval = false;
|
||||
auto state = getEvalState();
|
||||
Expr *e = state->parseExprFromFile(
|
||||
resolveExprPath(state->checkSourcePath(lookupFileArg(*state, *file)))
|
||||
);
|
||||
auto e =
|
||||
state->parseExprFromFile(
|
||||
resolveExprPath(
|
||||
lookupFileArg(*state, *file)));
|
||||
|
||||
Value root;
|
||||
state->eval(e, root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue