diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-11-30 15:14:30 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-11-30 15:14:30 +0100 |
commit | e3a873479eee4e19a852011d45b0fb653f6c9e89 (patch) | |
tree | ec4b0a04175ec3b76329074c18182230a3ca7074 /pkgs/build-support/fetchurl/default.nix | |
parent | f26ff0b1bdd6875548edea50efd69698f791ae50 (diff) | |
download | nixlib-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar nixlib-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.gz nixlib-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.bz2 nixlib-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.lz nixlib-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.xz nixlib-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.zst nixlib-e3a873479eee4e19a852011d45b0fb653f6c9e89.zip |
Remove fetchMD5warn
Deprecation warnings should not be used in Nixpkgs because they spam innocent "nix-env -qa" users with (in this case) dozens of messages that they can't do anything about. This also reverts commit 2ca883338389b7ab995924a0cab0211993bdf1da.
Diffstat (limited to 'pkgs/build-support/fetchurl/default.nix')
-rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 2cc45ca4bbf2..00f485ce6975 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -112,8 +112,7 @@ if (!hasHash) then throw "Specify hash for fetchurl fixed-output derivation: ${s outputHashAlgo = if outputHashAlgo != "" then outputHashAlgo else if sha512 != "" then "sha512" else if sha256 != "" then "sha256" else if sha1 != "" then "sha1" else "md5"; outputHash = if outputHash != "" then outputHash else - if sha512 != "" then sha512 else if sha256 != "" then sha256 else if sha1 != "" then sha1 else - (stdenv.lib.fetchMD5warn "fetchurl" (builtins.head urls_) md5); + if sha512 != "" then sha512 else if sha256 != "" then sha256 else if sha1 != "" then sha1 else md5; outputHashMode = if (recursiveHash || executable) then "recursive" else "flat"; |