summary refs log tree commit diff
path: root/pkgs/build-support/fetchurl
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-15 23:22:10 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-20 21:23:04 -0700
commit6f30e0a9062685bd7aa3b9cf025b31f32af0463f (patch)
tree6c831f67f04ba27f30b92f7ba915a83f5f3a570d /pkgs/build-support/fetchurl
parent12ecdc253bc6ed081268e3eaef86cd1a5c533773 (diff)
downloadnixpkgs-6f30e0a9062685bd7aa3b9cf025b31f32af0463f.tar
nixpkgs-6f30e0a9062685bd7aa3b9cf025b31f32af0463f.tar.gz
nixpkgs-6f30e0a9062685bd7aa3b9cf025b31f32af0463f.tar.bz2
nixpkgs-6f30e0a9062685bd7aa3b9cf025b31f32af0463f.tar.lz
nixpkgs-6f30e0a9062685bd7aa3b9cf025b31f32af0463f.tar.xz
nixpkgs-6f30e0a9062685bd7aa3b9cf025b31f32af0463f.tar.zst
nixpkgs-6f30e0a9062685bd7aa3b9cf025b31f32af0463f.zip
fetchurl: clean up md5 references
Diffstat (limited to 'pkgs/build-support/fetchurl')
-rw-r--r--pkgs/build-support/fetchurl/default.nix2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix
index 28d2519f423..bcab54e273d 100644
--- a/pkgs/build-support/fetchurl/default.nix
+++ b/pkgs/build-support/fetchurl/default.nix
@@ -67,7 +67,6 @@ in
 , # Legacy ways of specifying the hash.
   outputHash ? ""
 , outputHashAlgo ? ""
-, md5 ? ""
 , sha1 ? ""
 , sha256 ? ""
 , sha512 ? ""
@@ -125,7 +124,6 @@ let
     if hash != "" && sha256 != "" then throw "multiple hashes passed to fetchurl" else
 
     if hash != "" then { outputHashAlgo = null; outputHash = hash; }
-    else if md5 != "" then throw "fetchurl does not support md5 anymore, please use sha256 or sha512"
     else if (outputHash != "" && outputHashAlgo != "") then { inherit outputHashAlgo outputHash; }
     else if sha512 != "" then { outputHashAlgo = "sha512"; outputHash = sha512; }
     else if sha256 != "" then { outputHashAlgo = "sha256"; outputHash = sha256; }