nix-instantiate: Fix --eval-store

This commit is contained in:
Eelco Dolstra 2021-07-27 11:16:47 +02:00
parent 72c5bac39d
commit 47002108d1

View file

@ -155,7 +155,7 @@ static int main_nix_instantiate(int argc, char * * argv)
auto store = openStore();
auto evalStore = myArgs.evalStoreUrl ? openStore(*myArgs.evalStoreUrl) : store;
auto state = std::make_unique<EvalState>(myArgs.searchPath, store);
auto state = std::make_unique<EvalState>(myArgs.searchPath, evalStore, store);
state->repair = repair;
Bindings & autoArgs = *myArgs.getAutoArgs(*state);