1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

Support --eval-store in nix-instantiate and nix-build

This commit is contained in:
Eelco Dolstra 2021-07-15 14:28:33 +02:00
parent 3d9de41a5b
commit 2ff3035cf4
6 changed files with 13 additions and 12 deletions

View file

@ -153,6 +153,7 @@ static int main_nix_instantiate(int argc, char * * argv)
settings.readOnlyMode = true;
auto store = openStore();
auto evalStore = myArgs.evalStoreUrl ? openStore(*myArgs.evalStoreUrl) : store;
auto state = std::make_unique<EvalState>(myArgs.searchPath, store);
state->repair = repair;