fetchurl: Don't wait too long for the hashed mirrors

If the hashed mirror (nixos.org/tarballs) doesn't respond in 15
seconds, give up and try the original URL.
This commit is contained in:
Eelco Dolstra
2013-02-06 15:15:28 +01:00
parent f337ab4430
commit 04765da09a
2 changed files with 8 additions and 3 deletions
+4
View File
@@ -32,6 +32,10 @@ let
# This variable allows the user to override hashedMirrors from the
# command-line.
"NIX_HASHED_MIRRORS"
# This variable allows overriding the timeout for connecting to
# the hashed mirrors.
"NIX_CONNECT_TIMEOUT"
] ++ (map (site: "NIX_MIRRORS_${site}") sites);
in