Disable the binary cache substituter by default for now
This commit is contained in:
parent
cfd968dd94
commit
9e2fc6951c
2 changed files with 4 additions and 5 deletions
|
@ -323,8 +323,8 @@ build-use-chroot = /dev /proc /bin</programlisting>
|
||||||
<varlistentry><term><literal>binary-caches</literal></term>
|
<varlistentry><term><literal>binary-caches</literal></term>
|
||||||
|
|
||||||
<listitem><para>A list of URLs of binary caches, separated by
|
<listitem><para>A list of URLs of binary caches, separated by
|
||||||
whitespace. The default is
|
whitespace. The default is empty.<!-- The default is
|
||||||
<literal>http://nixos.org/binary-cache</literal>.</para></listitem>
|
<literal>http://nixos.org/binary-cache</literal>. --></para></listitem>
|
||||||
|
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
|
|
@ -171,9 +171,8 @@ sub getAvailableCaches {
|
||||||
return map { s/\/+$//; $_ } split(/ /, $s);
|
return map { s/\/+$//; $_ } split(/ /, $s);
|
||||||
}
|
}
|
||||||
|
|
||||||
my @urls = strToList
|
my @urls = strToList ($Nix::Config::config{"binary-caches"} // "");
|
||||||
($Nix::Config::config{"binary-caches"}
|
# // ($Nix::Config::storeDir eq "/nix/store" ? "http://nixos.org/binary-cache" : ""));
|
||||||
// ($Nix::Config::storeDir eq "/nix/store" ? "http://nixos.org/binary-cache" : ""));
|
|
||||||
|
|
||||||
my $urlsFiles = $Nix::Config::config{"binary-cache-files"}
|
my $urlsFiles = $Nix::Config::config{"binary-cache-files"}
|
||||||
// "/nix/var/nix/profiles/per-user/root/channels/binary-caches/*";
|
// "/nix/var/nix/profiles/per-user/root/channels/binary-caches/*";
|
||||||
|
|
Loading…
Reference in a new issue