mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
Let fetchurl retry failed downloads. Add NIX_CURL_FLAGS impure var
svn path=/nixpkgs/trunk/; revision=22006
This commit is contained in:
parent
25a7c36007
commit
952bc80b4d
|
@ -13,9 +13,11 @@ fi
|
|||
# cryptographic hash of the output anyway).
|
||||
curl="curl \
|
||||
--location --max-redirs 20 \
|
||||
--retry 3
|
||||
--disable-epsv \
|
||||
--cookie-jar cookies \
|
||||
--insecure"
|
||||
--insecure \
|
||||
$NIX_CURL_OPTIONS"
|
||||
|
||||
|
||||
tryDownload() {
|
||||
|
|
|
@ -91,6 +91,9 @@ stdenv.mkDerivation {
|
|||
# by definition pure.
|
||||
"http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"
|
||||
|
||||
# This variable allows the user to pass additional options to curl
|
||||
"NIX_CURL_FLAGS"
|
||||
|
||||
# This variable allows the user to override hashedMirrors from the
|
||||
# command-line.
|
||||
"NIX_HASHED_MIRRORS"
|
||||
|
|
Loading…
Reference in a new issue