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