aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-02 22:16:37 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-02 22:16:37 +0100
commitaebea2e489a21af260e7a654b0313efe042fbf9d (patch)
tree7e76d4967c3bb17cadd4c8aff263f813d8e71278
parent649bb60617e5413a87625a0c23e5ebd4f6229703 (diff)
Reinstate the http://nixos.org/binary-cache default for the binary-caches setting
-rw-r--r--doc/manual/conf-file.xml4
-rw-r--r--scripts/download-from-binary-cache.pl.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/manual/conf-file.xml b/doc/manual/conf-file.xml
index 588e15216..4629e8eae 100644
--- a/doc/manual/conf-file.xml
+++ b/doc/manual/conf-file.xml
@@ -324,8 +324,8 @@ flag, e.g. <literal>--option gc-keep-outputs false</literal>.</para>
<varlistentry><term><literal>binary-caches</literal></term>
<listitem><para>A list of URLs of binary caches, separated by
- whitespace. The default is empty.<!-- The default is
- <literal>http://nixos.org/binary-cache</literal>. --></para></listitem>
+ whitespace. The default is
+ <literal>http://nixos.org/binary-cache</literal>.</para></listitem>
</varlistentry>
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in
index 98333dafb..03c331a63 100644
--- a/scripts/download-from-binary-cache.pl.in
+++ b/scripts/download-from-binary-cache.pl.in
@@ -193,8 +193,8 @@ sub getAvailableCaches {
return map { s/\/+$//; $_ } split(/ /, $s);
}
- my @urls = strToList ($Nix::Config::config{"binary-caches"} // "");
- # // ($Nix::Config::storeDir eq "/nix/store" ? "http://nixos.org/binary-cache" : ""));
+ my @urls = strToList($Nix::Config::config{"binary-caches"} //
+ ($Nix::Config::storeDir eq "/nix/store" ? "http://nixos.org/binary-cache" : ""));
my $urlsFiles = $Nix::Config::config{"binary-cache-files"}
// "$Nix::Config::stateDir/profiles/per-user/$userName/channels/binary-caches/*";