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
+8 -4
View File
@@ -1,16 +1,20 @@
{stdenv, subversion, sshSupport ? false, openssh ? null, expect}:
{username, password, url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
if md5 != "" then
throw "fetchsvnssh does not support md5 anymore, please use sha256"
else
stdenv.mkDerivation {
name = "svn-export-ssh";
builder = ./builder.sh;
buildInputs = [subversion expect];
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = if sha256 == "" then md5 else sha256;
outputHash = sha256;
sshSubversion = ./sshsubversion.exp;
inherit username password url rev sshSupport openssh;
}