# Hash attributes will be map to the corresponding outputHash*
"hash"
"sha1"
"sha256"
"sha512"
];
extendDrvArgs=
finalAttrs:
{
# URL to fetch.
url?"",
@@ -69,13 +85,13 @@ in
# Additional curl options needed for the download to succeed.
curlOptsList?[],
# Name of the file. If empty, use the basename of `url' (or of the
# first element of `urls').
name?"",
# Name of the file when pname + version is unspecified.
# Default to the basename of `url' (or of the first element of `urls').
name?null,
# for versioned downloads optionally take pname + version.
pname?"",
version?"",
pname?null,
version?null,
# SRI hash.
hash?"",
@@ -212,33 +228,17 @@ let
"${lib.headmirrorList}${lib.elemAtmirrorSplit1}";
in
assert
(lib.isListcurlOpts)
->lib.warn''
fetchurl for ${toString(builtins.headurls_)}: curlOpts is a list (${
lib.generators.toPretty{multiline=false;}curlOpts
}), which is not supported anymore.
- If you wish to get the same effect as before, for elements with spaces (even if escaped) to expand to multiple curl arguments, use a string argument instead:
fetchurl for ${url}: curlOpts is a list (${curlOptsRepresentation}), which is not supported anymore.
- If you wish to get the same effect as before, for elements with spaces (even if escaped) to expand to multiple curl arguments, use a string argument instead:
curlOpts = ${curlOptsAsStringRepresentation};
- If you wish for each list element to be passed as a separate curl argument, allowing arguments to contain spaces, use curlOptsList instead: