tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fetchurl: clean up md5 references
Theodore Ni
2 years ago
6f30e0a9
12ecdc25
-2
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
fetchurl
default.nix
-2
pkgs/build-support/fetchurl/default.nix
···
67
67
, # Legacy ways of specifying the hash.
68
68
outputHash ? ""
69
69
, outputHashAlgo ? ""
70
70
-
, md5 ? ""
71
70
, sha1 ? ""
72
71
, sha256 ? ""
73
72
, sha512 ? ""
···
125
124
if hash != "" && sha256 != "" then throw "multiple hashes passed to fetchurl" else
126
125
127
126
if hash != "" then { outputHashAlgo = null; outputHash = hash; }
128
128
-
else if md5 != "" then throw "fetchurl does not support md5 anymore, please use sha256 or sha512"
129
127
else if (outputHash != "" && outputHashAlgo != "") then { inherit outputHashAlgo outputHash; }
130
128
else if sha512 != "" then { outputHashAlgo = "sha512"; outputHash = sha512; }
131
129
else if sha256 != "" then { outputHashAlgo = "sha256"; outputHash = sha256; }