summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-15 23:24:53 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-20 21:24:13 -0700
commit4c9ed3189c92355b7e6e25271c8a26b3277f4f51 (patch)
tree142beb7d0e526cf8eab09a6e55ebd37f1c7e8e0e
parenteadaf81055e0595f7592ce422f6a31c108bde168 (diff)
downloadnixpkgs-4c9ed3189c92355b7e6e25271c8a26b3277f4f51.tar
nixpkgs-4c9ed3189c92355b7e6e25271c8a26b3277f4f51.tar.gz
nixpkgs-4c9ed3189c92355b7e6e25271c8a26b3277f4f51.tar.bz2
nixpkgs-4c9ed3189c92355b7e6e25271c8a26b3277f4f51.tar.lz
nixpkgs-4c9ed3189c92355b7e6e25271c8a26b3277f4f51.tar.xz
nixpkgs-4c9ed3189c92355b7e6e25271c8a26b3277f4f51.tar.zst
nixpkgs-4c9ed3189c92355b7e6e25271c8a26b3277f4f51.zip
fetchhg: clean up md5 references
-rw-r--r--pkgs/build-support/fetchhg/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/build-support/fetchhg/default.nix b/pkgs/build-support/fetchhg/default.nix
index a5817f2c305..6af886bf093 100644
--- a/pkgs/build-support/fetchhg/default.nix
+++ b/pkgs/build-support/fetchhg/default.nix
@@ -2,15 +2,12 @@
 { name ? null
 , url
 , rev ? null
-, md5 ? null
 , sha256 ? null
 , hash ? null
 , fetchSubrepos ? false
 , preferLocalBuild ? true }:
 
-if md5 != null then
-  throw "fetchhg does not support md5 anymore, please use sha256 or hash"
-else if hash != null && sha256 != null then
+if hash != null && sha256 != null then
   throw "Only one of sha256 or hash can be set"
 else
 # TODO: statically check if mercurial as the https support if the url starts woth https.