about summary refs log tree commit diff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-21T14·06+0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-21T14·06+0100
commit4bb38591e591e3ef59f7881575ca1f28015a8c47 (patch)
tree411e6f98a2802f5d9f04fdbb01fe76ffcb10cefe /src/libstore/store-api.cc
parent7347daba8cf3a12706d3714bdaf9b7c104accde6 (diff)
Restore cache.nixos.org as the default substituter
Fixes #1283.
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index b1bf961e1bfb..8c3422e0b43a 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -778,10 +778,7 @@ std::list<ref<Store>> getDefaultSubstituters()
         state->stores.push_back(openStore(uri));
     };
 
-    for (auto uri : settings.get("substituters", Strings()))
-        addStore(uri);
-
-    for (auto uri : settings.get("binary-caches", Strings()))
+    for (auto uri : settings.get("substituters", settings.get("binary-caches", Strings{"https://cache.nixos.org/"})))
         addStore(uri);
 
     for (auto uri : settings.get("extra-binary-caches", Strings()))