mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
fetchhg: clean up md5 references
This commit is contained in:
parent
eadaf81055
commit
4c9ed3189c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user