mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
Move --impure to MixEvalArgs
This commit is contained in:
parent
a12cd53567
commit
84c12dbd7c
2 changed files with 7 additions and 7 deletions
|
@ -26,6 +26,13 @@ MixEvalArgs::MixEvalArgs()
|
|||
.description("add a path to the list of locations used to look up <...> file names")
|
||||
.label("path")
|
||||
.handler([&](std::string s) { searchPath.push_back(s); });
|
||||
|
||||
mkFlag()
|
||||
.longName("impure")
|
||||
.description("allow access to mutable paths and repositories")
|
||||
.handler([&](std::vector<std::string> ss) {
|
||||
evalSettings.pureEval = false;
|
||||
});
|
||||
}
|
||||
|
||||
Bindings * MixEvalArgs::getAutoArgs(EvalState & state)
|
||||
|
|
|
@ -20,13 +20,6 @@ SourceExprCommand::SourceExprCommand()
|
|||
.label("file")
|
||||
.description("evaluate a set of attributes from FILE (deprecated)")
|
||||
.dest(&file);
|
||||
|
||||
mkFlag()
|
||||
.longName("impure")
|
||||
.description("allow access to mutable paths and repositories")
|
||||
.handler([&](std::vector<std::string> ss) {
|
||||
evalSettings.pureEval = false;
|
||||
});
|
||||
}
|
||||
|
||||
ref<EvalState> SourceExprCommand::getEvalState()
|
||||
|
|
Loading…
Reference in a new issue