···14, extraPostFetch ? ""
15, postFetch ? ""
16, name ? "source"
0017, nativeBuildInputs ? [ ]
18, # Allows to set the extension for the intermediate downloaded
19 # file. This can be used as a hint for the unpackCmdHooks to select
···232425lib.warnIf (extraPostFetch != "") "use 'postFetch' instead of 'extraPostFetch' with 'fetchzip' and 'fetchFromGitHub'."
26-(fetchurl (let
027 tmpFilename =
28 if extension != null
29 then "download.${extension}"
30 else baseNameOf (if url != "" then url else builtins.head urls);
31-in {
32- inherit name;
3300000000034 recursiveHash = true;
3536 downloadToTemp = true;
···14, extraPostFetch ? ""
15, postFetch ? ""
16, name ? "source"
17+, pname ? ""
18+, version ? ""
19, nativeBuildInputs ? [ ]
20, # Allows to set the extension for the intermediate downloaded
21 # file. This can be used as a hint for the unpackCmdHooks to select
···252627lib.warnIf (extraPostFetch != "") "use 'postFetch' instead of 'extraPostFetch' with 'fetchzip' and 'fetchFromGitHub'."
28+29+(let
30 tmpFilename =
31 if extension != null
32 then "download.${extension}"
33 else baseNameOf (if url != "" then url else builtins.head urls);
34+in
03536+fetchurl ((
37+ if (pname != "" && version != "") then
38+ {
39+ name = "${name}-${version}";
40+ inherit pname version;
41+ }
42+ else
43+ { inherit name; }
44+) // {
45 recursiveHash = true;
4647 downloadToTemp = true;