summary refs log tree commit diff
path: root/pkgs/build-support/fetchnuget/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-03-13 13:31:44 +0100
committerRobin Gloster <mail@glob.in>2017-03-20 22:23:41 +0100
commitf57185db953670d6e4f334b7ad2dc79a96d703c4 (patch)
treeb306c2b35218daa92894a1256dd5dd32c2ff3698 /pkgs/build-support/fetchnuget/default.nix
parent1c3308e9c1dcbfc939b8cfd6d4f6e7b1c4b40748 (diff)
downloadnixpkgs-f57185db953670d6e4f334b7ad2dc79a96d703c4.tar
nixpkgs-f57185db953670d6e4f334b7ad2dc79a96d703c4.tar.gz
nixpkgs-f57185db953670d6e4f334b7ad2dc79a96d703c4.tar.bz2
nixpkgs-f57185db953670d6e4f334b7ad2dc79a96d703c4.tar.lz
nixpkgs-f57185db953670d6e4f334b7ad2dc79a96d703c4.tar.xz
nixpkgs-f57185db953670d6e4f334b7ad2dc79a96d703c4.tar.zst
nixpkgs-f57185db953670d6e4f334b7ad2dc79a96d703c4.zip
fetch-*: remove md5 support
fixes #4491
Diffstat (limited to 'pkgs/build-support/fetchnuget/default.nix')
-rw-r--r--pkgs/build-support/fetchnuget/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchnuget/default.nix b/pkgs/build-support/fetchnuget/default.nix
index 95bb7b7cd8d..62b700dd81b 100644
--- a/pkgs/build-support/fetchnuget/default.nix
+++ b/pkgs/build-support/fetchnuget/default.nix
@@ -8,9 +8,12 @@ attrs @
 , md5 ? ""
 , ...
 }:
+if md5 != "" then
+  throw "fetchnuget does not support md5 anymore, please use sha256"
+else
   buildDotnetPackage ({
     src = fetchurl {
-      inherit url sha256 md5;
+      inherit url sha256;
       name = "${baseName}.${version}.zip";
     };