mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +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).
|
# cryptographic hash of the output anyway).
|
||||||
curl="curl \
|
curl="curl \
|
||||||
--location --max-redirs 20 \
|
--location --max-redirs 20 \
|
||||||
|
--retry 3
|
||||||
--disable-epsv \
|
--disable-epsv \
|
||||||
--cookie-jar cookies \
|
--cookie-jar cookies \
|
||||||
--insecure"
|
--insecure \
|
||||||
|
$NIX_CURL_OPTIONS"
|
||||||
|
|
||||||
|
|
||||||
tryDownload() {
|
tryDownload() {
|
||||||
|
|
|
@ -91,6 +91,9 @@ stdenv.mkDerivation {
|
||||||
# by definition pure.
|
# by definition pure.
|
||||||
"http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"
|
"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
|
# This variable allows the user to override hashedMirrors from the
|
||||||
# command-line.
|
# command-line.
|
||||||
"NIX_HASHED_MIRRORS"
|
"NIX_HASHED_MIRRORS"
|
||||||
|
|
Loading…
Reference in a new issue