Move addRegistrOverrides

This commit is contained in:
Eelco Dolstra
2019-10-08 17:00:55 +02:00
parent 21304c11f9
commit a0bd088d84
3 changed files with 3 additions and 4 deletions
-2
View File
@@ -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 != "") {
-1
View File
@@ -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());
+3 -1
View File
@@ -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);
}