diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2016-10-08 00:24:10 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-10-09 16:19:04 +0200 |
commit | f603dc11a63a9ae83e520955abe75d02b9591f83 (patch) | |
tree | 2ee4d26718d8633e3e0f86ff177afbd586f942b5 /pkgs/build-support/fetchurl/default.nix | |
parent | c6b050fd2fb53a9e11e765f62ec83d0911508d4e (diff) | |
download | nixlib-f603dc11a63a9ae83e520955abe75d02b9591f83.tar nixlib-f603dc11a63a9ae83e520955abe75d02b9591f83.tar.gz nixlib-f603dc11a63a9ae83e520955abe75d02b9591f83.tar.bz2 nixlib-f603dc11a63a9ae83e520955abe75d02b9591f83.tar.lz nixlib-f603dc11a63a9ae83e520955abe75d02b9591f83.tar.xz nixlib-f603dc11a63a9ae83e520955abe75d02b9591f83.tar.zst nixlib-f603dc11a63a9ae83e520955abe75d02b9591f83.zip |
fetch*: print a trace warning about md5 deprecation
Diffstat (limited to 'pkgs/build-support/fetchurl/default.nix')
-rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 00f485ce6975..2cc45ca4bbf2 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -112,7 +112,8 @@ 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 md5; + if sha512 != "" then sha512 else if sha256 != "" then sha256 else if sha1 != "" then sha1 else + (stdenv.lib.fetchMD5warn "fetchurl" (builtins.head urls_) md5); outputHashMode = if (recursiveHash || executable) then "recursive" else "flat"; |