fetch*: print a trace warning about md5 deprecation

This commit is contained in:
Michael Raskin
2016-10-09 16:19:04 +02:00
committed by Robin Gloster
parent c6b050fd2f
commit f603dc11a6
9 changed files with 23 additions and 9 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ stdenv.mkDerivation {
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
outputHashMode = "recursive";
outputHash = if sha256 == "" then md5 else sha256;
outputHash = if sha256 == "" then
(stdenv.lib.fetchMD5warn "fetchgit" url md5) else sha256;
inherit url rev leaveDotGit fetchSubmodules deepClone branchName;