···10 ];
11in
1213-{ # URL to fetch.
14- url
1516 # Hash of the downloaded file
17, sha256
···19, # Additional curl options needed for the download to succeed.
20 curlOpts ? ""
2122-, # Name of the file. If empty, use the basename of `url' (or of the
23- # first element of `urls').
24 name ? ""
25}:
2627stdenv.mkDerivation {
28- name = if name != "" then name else baseNameOf (toString url);
0029 builder = ./builder.sh;
3031 buildInputs = [ curl ];
···39 outputHash = sha256;
40 outputHashMode = "flat";
4142- inherit curlOpts url adc_user adc_pass;
4344 preferLocalBuild = true;
45-}
···10 ];
11in
1213+{ # Path to fetch.
14+ path
1516 # Hash of the downloaded file
17, sha256
···19, # Additional curl options needed for the download to succeed.
20 curlOpts ? ""
2122+, # Name of the file. If empty, use the basename of `path'.
023 name ? ""
24}:
2526stdenv.mkDerivation {
27+ url = "https://developer.apple.com/downloads/download.action?path=${path}";
28+29+ name = if name != "" then name else baseNameOf path;
30 builder = ./builder.sh;
3132 buildInputs = [ curl ];
···40 outputHash = sha256;
41 outputHashMode = "flat";
4243+ inherit curlOpts adc_user adc_pass;
4445 preferLocalBuild = true;
46+}