summary refs log tree commit diff
path: root/pkgs/build-support/fetchurl
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-11-30 15:14:30 +0100
committerEelco Dolstra <edolstra@gmail.com>2016-11-30 15:14:30 +0100
commite3a873479eee4e19a852011d45b0fb653f6c9e89 (patch)
treeec4b0a04175ec3b76329074c18182230a3ca7074 /pkgs/build-support/fetchurl
parentf26ff0b1bdd6875548edea50efd69698f791ae50 (diff)
downloadnixpkgs-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar
nixpkgs-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.gz
nixpkgs-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.bz2
nixpkgs-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.lz
nixpkgs-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.xz
nixpkgs-e3a873479eee4e19a852011d45b0fb653f6c9e89.tar.zst
nixpkgs-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')
-rw-r--r--pkgs/build-support/fetchurl/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix
index 2cc45ca4bbf..00f485ce697 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";