···5960, recursiveHash ? false
61000000062, # Shell code executed after the file has been fetched
63 # successfully. This can do things like check or transform the file.
64 postFetch ? ""
···118119 outputHashMode = if (recursiveHash || executable) then "recursive" else "flat";
120121- inherit curlOpts showURLs mirrorsFile impureEnvVars postFetch downloadToTemp executable;
00122123 # Doing the download on a remote machine just duplicates network
124 # traffic, so don't do that.
125 preferLocalBuild = true;
00000126127 inherit meta;
128}
···5960, recursiveHash ? false
6162+, # Shell code to build a netrc file for BASIC auth
63+ netrcPhase ? null
64+65+, # Impure env vars (http://nixos.org/nix/manual/#sec-advanced-attributes)
66+ # needed for netrcPhase
67+ netrcImpureEnvVars ? []
68+69, # Shell code executed after the file has been fetched
70 # successfully. This can do things like check or transform the file.
71 postFetch ? ""
···125126 outputHashMode = if (recursiveHash || executable) then "recursive" else "flat";
127128+ inherit curlOpts showURLs mirrorsFile postFetch downloadToTemp executable;
129+130+ impureEnvVars = impureEnvVars ++ netrcImpureEnvVars;
131132 # Doing the download on a remote machine just duplicates network
133 # traffic, so don't do that.
134 preferLocalBuild = true;
135+136+ postHook = if netrcPhase == null then null else ''
137+ ${netrcPhase}
138+ curlOpts="$curlOpts --netrc-file $PWD/netrc"
139+ '';
140141 inherit meta;
142}