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";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "1.15.4";
|
2022-12-17 10:02:37 +00:00
|
|
|
duneVersion = "3";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-22 10:55:15 +00:00
|
|
|
url = "https://github.com/djs55/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
|
|
hash = "sha256-beWxITmxmZzp30zHiloxiGwqVHydRIvyhT+LU7zx8bE=";
|
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
|
|
|
};
|
|
|
|
}
|