Skip to content

Commit

Permalink
fetchurl: suggest SRI hash in md5 assert
Browse files Browse the repository at this point in the history
to sync it with fetchgit
  • Loading branch information
jtojnar committed Feb 8, 2021
1 parent 1eef9f4 commit 2156c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchurl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ let

hash_ =
if hash != "" then { outputHashAlgo = null; outputHash = hash; }
else if md5 != "" then throw "fetchurl does not support md5 anymore, please use sha256 or sha512"
else if md5 != "" then throw "fetchurl does not support md5 anymore, please use hash (in SRI format), sha256 or sha512 attribute"
else if (outputHash != "" && outputHashAlgo != "") then { inherit outputHashAlgo outputHash; }
else if sha512 != "" then { outputHashAlgo = "sha512"; outputHash = sha512; }
else if sha256 != "" then { outputHashAlgo = "sha256"; outputHash = sha256; }
Expand Down

0 comments on commit 2156c20

Please sign in to comment.