diff options
author | Robin Gloster <mail@glob.in> | 2017-03-13 13:31:44 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-03-20 22:23:41 +0100 |
commit | f57185db953670d6e4f334b7ad2dc79a96d703c4 (patch) | |
tree | b306c2b35218daa92894a1256dd5dd32c2ff3698 /pkgs/build-support/fetchsvn | |
parent | 1c3308e9c1dcbfc939b8cfd6d4f6e7b1c4b40748 (diff) |
fetch-*: remove md5 support
fixes #4491
Diffstat (limited to 'pkgs/build-support/fetchsvn')
-rw-r--r-- | pkgs/build-support/fetchsvn/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchsvn/default.nix b/pkgs/build-support/fetchsvn/default.nix index 747052c1cb703..6ed34ec02763a 100644 --- a/pkgs/build-support/fetchsvn/default.nix +++ b/pkgs/build-support/fetchsvn/default.nix @@ -25,14 +25,17 @@ let name_ = if name == null then "${repoName}-r${toString rev}" else name; in +if md5 != "" then + throw "fetchsvn does not support md5 anymore, please use sha256" +else stdenv.mkDerivation { name = name_; builder = ./builder.sh; buildInputs = [subversion]; - outputHashAlgo = if sha256 == "" then "md5" else "sha256"; + outputHashAlgo = "sha256"; outputHashMode = "recursive"; - outputHash = if sha256 == "" then md5 else sha256; + outputHash = sha256; inherit url rev sshSupport openssh ignoreExternals ignoreKeywords; |