mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Merge branch 'rework-options' of https://github.com/copumpkin/nix
This commit is contained in:
commit
1860070548
11 changed files with 222 additions and 93 deletions
|
@ -782,14 +782,13 @@ std::list<ref<Store>> getDefaultSubstituters()
|
|||
state->stores.push_back(openStore(uri));
|
||||
};
|
||||
|
||||
Strings defaultSubstituters;
|
||||
if (settings.nixStore == "/nix/store")
|
||||
defaultSubstituters.push_back("https://cache.nixos.org/");
|
||||
|
||||
for (auto uri : settings.get("substituters", settings.get("binary-caches", defaultSubstituters)))
|
||||
for (auto uri : settings.substituters)
|
||||
addStore(uri);
|
||||
|
||||
for (auto uri : settings.get("extra-binary-caches", Strings()))
|
||||
for (auto uri : settings.binaryCaches)
|
||||
addStore(uri);
|
||||
|
||||
for (auto uri : settings.extraBinaryCaches)
|
||||
addStore(uri);
|
||||
|
||||
state->done = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue