diff options
author | Gergely Risko <gergely@risko.hu> | 2013-05-16 10:18:12 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2013-05-16 10:45:16 +0200 |
commit | 07b26ce4939a6b4469085e87ce18573787968715 (patch) | |
tree | df9f9dc5dd8918d12766ade154fa445fb82bec91 /pkgs/build-support/fetchurl/default.nix | |
parent | 951f5be7d9fede86904047e9922c9c4517b5ce18 (diff) | |
download | nixlib-07b26ce4939a6b4469085e87ce18573787968715.tar nixlib-07b26ce4939a6b4469085e87ce18573787968715.tar.gz nixlib-07b26ce4939a6b4469085e87ce18573787968715.tar.bz2 nixlib-07b26ce4939a6b4469085e87ce18573787968715.tar.lz nixlib-07b26ce4939a6b4469085e87ce18573787968715.tar.xz nixlib-07b26ce4939a6b4469085e87ce18573787968715.tar.zst nixlib-07b26ce4939a6b4469085e87ce18573787968715.zip |
fetchUrl: add curlOpts parameter (merge #535)
Diffstat (limited to 'pkgs/build-support/fetchurl/default.nix')
-rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 09816d9ba8e4..6c981229531a 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -47,6 +47,9 @@ in # locations. They are tried in order. urls ? [] +, # Additional curl options needed for the download to succeed. + curlOpts ? "" + , # Name of the file. If empty, use the basename of `url' (or of the # first element of `urls'). name ? "" @@ -97,7 +100,7 @@ stdenv.mkDerivation { outputHash = if outputHash != "" then outputHash else if sha256 != "" then sha256 else if sha1 != "" then sha1 else md5; - inherit showURLs mirrorsFile impureEnvVars; + inherit curlOpts showURLs mirrorsFile impureEnvVars; # Doing the download on a remote machine just duplicates network # traffic, so don't do that. |