2022-12-17 10:02:37 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, stdlib-shims, ounit2 }:
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "sha";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.15.2";
|
|
|
|
duneVersion = "3";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "https://github.com/djs55/ocaml-${pname}/releases/download/${version}/${pname}-${version}.tbz";
|
|
|
|
hash = "sha256-P71Xs5p8QAaOtBrh7MuhQJOL6144BqTLvXlZOyGD/7c=";
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
stdlib-shims
|
|
|
|
];
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
ounit2
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Binding for SHA interface code in OCaml";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/djs55/ocaml-sha/";
|
2021-02-17 17:02:09 +00:00
|
|
|
license = licenses.isc;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ arthurteisseire ];
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
}
|