diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-15 23:24:53 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-20 21:24:13 -0700 |
commit | 4c9ed3189c92355b7e6e25271c8a26b3277f4f51 (patch) | |
tree | 142beb7d0e526cf8eab09a6e55ebd37f1c7e8e0e | |
parent | eadaf81055e0595f7592ce422f6a31c108bde168 (diff) |
fetchhg: clean up md5 references
-rw-r--r-- | pkgs/build-support/fetchhg/default.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/build-support/fetchhg/default.nix b/pkgs/build-support/fetchhg/default.nix index a5817f2c3050f..6af886bf09344 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. |