forked from lix-project/lix
Move --impure to MixEvalArgs
This commit is contained in:
parent
a12cd53567
commit
84c12dbd7c
|
@ -26,6 +26,13 @@ MixEvalArgs::MixEvalArgs()
|
||||||
.description("add a path to the list of locations used to look up <...> file names")
|
.description("add a path to the list of locations used to look up <...> file names")
|
||||||
.label("path")
|
.label("path")
|
||||||
.handler([&](std::string s) { searchPath.push_back(s); });
|
.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)
|
Bindings * MixEvalArgs::getAutoArgs(EvalState & state)
|
||||||
|
|
|
@ -20,13 +20,6 @@ SourceExprCommand::SourceExprCommand()
|
||||||
.label("file")
|
.label("file")
|
||||||
.description("evaluate a set of attributes from FILE (deprecated)")
|
.description("evaluate a set of attributes from FILE (deprecated)")
|
||||||
.dest(&file);
|
.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()
|
ref<EvalState> SourceExprCommand::getEvalState()
|
||||||
|
|
Loading…
Reference in a new issue