diff options
| author | Jan Tojnar <jtojnar@gmail.com> | 2020-02-14 13:00:57 +0100 |
|---|---|---|
| committer | Jan Tojnar <jtojnar@gmail.com> | 2020-02-14 13:00:57 +0100 |
| commit | 910a374097b16f2a902d2d50601268758a55df2b (patch) | |
| tree | 882ae072471f04b2a96d45346e843d519cafa97a | |
| parent | fetchpatch: Allow using SRI hash instead of sha256 (diff) | |
| download | nixpkgs-gitlab.intr/fetchgit-sri.tar.gz | |
fetchurl: suggest SRI hash in md5 assertgitlab.intr/fetchgit-sri
to sync it with fetchgit
| -rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 7d23a3a7f8f1..b0c001bdb711 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -107,7 +107,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; } |
