fetch-*: remove md5 support

fixes #4491
This commit is contained in:
Robin Gloster
2017-03-20 22:23:41 +01:00
parent 1c3308e9c1
commit f57185db95
8 changed files with 44 additions and 24 deletions
+6 -3
View File
@@ -1,13 +1,16 @@
{stdenv, darcs, nix}: {url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:
if md5 != "" then
throw "fetchdarcs does not support md5 anymore, please use sha256"
else
stdenv.mkDerivation {
name = "fetchdarcs";
builder = ./builder.sh;
buildInputs = [darcs];
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = if sha256 == "" then md5 else sha256;
outputHash = sha256;
inherit url rev context;
}