mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
download-from-binary-cache: Only use the default cache for /nix/store
This commit is contained in:
parent
67c6f3eded
commit
7f8e805c8e
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ use strict;
|
||||||
Nix::Config::readConfig;
|
Nix::Config::readConfig;
|
||||||
|
|
||||||
my @binaryCacheUrls = map { s/\/+$//; $_ } split(/ /,
|
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);
|
my $maxParallelRequests = int($Nix::Config::config{"binary-caches-parallel-connections"} // 150);
|
||||||
$maxParallelRequests = 1 if $maxParallelRequests < 1;
|
$maxParallelRequests = 1 if $maxParallelRequests < 1;
|
||||||
|
|
Loading…
Reference in a new issue