forked from lix-project/lix
Move addRegistrOverrides
This commit is contained in:
parent
21304c11f9
commit
a0bd088d84
|
@ -52,8 +52,6 @@ struct CmdBuild : MixDryRun, MixProfile, InstallablesCommand
|
|||
{
|
||||
auto buildables = build(store, dryRun ? DryRun : Build, installables);
|
||||
|
||||
auto evalState = std::make_shared<EvalState>(searchPath, store);
|
||||
evalState->addRegistryOverrides(registryOverrides);
|
||||
if (dryRun) return;
|
||||
|
||||
if (outLink != "") {
|
||||
|
|
|
@ -129,7 +129,6 @@ struct CmdFlakeDeps : FlakeCommand
|
|||
void run(nix::ref<nix::Store> store) override
|
||||
{
|
||||
auto evalState = getEvalState();
|
||||
evalState->addRegistryOverrides(registryOverrides);
|
||||
|
||||
std::queue<ResolvedFlake> todo;
|
||||
todo.push(resolveFlake());
|
||||
|
|
|
@ -56,8 +56,10 @@ SourceExprCommand::SourceExprCommand()
|
|||
|
||||
ref<EvalState> EvalCommand::getEvalState()
|
||||
{
|
||||
if (!evalState)
|
||||
if (!evalState) {
|
||||
evalState = std::make_shared<EvalState>(searchPath, getStore());
|
||||
evalState->addRegistryOverrides(registryOverrides);
|
||||
}
|
||||
return ref<EvalState>(evalState);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue