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/fetchnuget/default.nix | |
parent | 1c3308e9c1dcbfc939b8cfd6d4f6e7b1c4b40748 (diff) | |
download | nixpkgs-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.nix | 5 |
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"; }; |