forked from lix-project/lix
download-from-binary-cache: Only use the default cache for /nix/store
This commit is contained in:
parent
67c6f3eded
commit
7f8e805c8e
|
@ -13,7 +13,9 @@ use strict;
|
|||
Nix::Config::readConfig;
|
||||
|
||||
my @binaryCacheUrls = map { s/\/+$//; $_ } split(/ /,
|
||||
($ENV{"NIX_BINARY_CACHES"} // $Nix::Config::config{"binary-caches"} // "http://nixos.org/binary-cache"));
|
||||
($ENV{"NIX_BINARY_CACHES"}
|
||||
// $Nix::Config::config{"binary-caches"}
|
||||
// ($Nix::Config::storeDir eq "/nix/store" ? "http://nixos.org/binary-cache" : "")));
|
||||
|
||||
my $maxParallelRequests = int($Nix::Config::config{"binary-caches-parallel-connections"} // 150);
|
||||
$maxParallelRequests = 1 if $maxParallelRequests < 1;
|
||||
|
|
Loading…
Reference in a new issue