aboutsummaryrefslogtreecommitdiff
path: root/src/nix-instantiate
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-27 11:16:47 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-27 11:16:47 +0200
commit47002108d1b17e996d2463bbb22f9cffbc59ae71 (patch)
tree46662e9a1d273070e7a4e6424edc0dfa1185d2a3 /src/nix-instantiate
parent72c5bac39d0ee37a2a6c02dad5df3e17c02a7995 (diff)
nix-instantiate: Fix --eval-store
Diffstat (limited to 'src/nix-instantiate')
-rw-r--r--src/nix-instantiate/nix-instantiate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc
index a269c5b5c..25d0fa3ba 100644
--- a/src/nix-instantiate/nix-instantiate.cc
+++ b/src/nix-instantiate/nix-instantiate.cc
@@ -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);