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:
parent
3d9de41a5b
commit
2ff3035cf4
6 changed files with 13 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue