2022-02-22 09:59:04 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, stdlib-shims, dune-configurator, ounit }:
|
2021-01-28 11:21:47 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "sha";
|
2021-12-08 19:29:09 +00:00
|
|
|
version = "1.15.1";
|
2021-01-28 11:21:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/djs55/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
2021-12-08 19:29:09 +00:00
|
|
|
sha256 = "sha256-cRtjydvwgXgimi6F3C48j7LrWgfMO6m9UJKjKlxvp0Q=";
|
2021-01-28 11:21:47 +00:00
|
|
|
};
|
|
|
|
|
2021-06-06 10:50:06 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
|
2021-06-06 10:50:06 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
stdlib-shims
|
|
|
|
];
|
|
|
|
|
2021-01-28 11:21:47 +00:00
|
|
|
doCheck = true;
|
2021-06-06 10:50:06 +00:00
|
|
|
checkInputs = [
|
|
|
|
ounit
|
|
|
|
];
|
2021-01-28 11:21:47 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Binding for SHA interface code in OCaml";
|
2021-06-06 10:50:06 +00:00
|
|
|
homepage = "https://github.com/djs55/ocaml-sha/";
|
2021-01-28 11:21:47 +00:00
|
|
|
license = licenses.isc;
|
2021-06-06 10:50:06 +00:00
|
|
|
maintainers = with maintainers; [ arthurteisseire ];
|
2021-01-28 11:21:47 +00:00
|
|
|
};
|
|
|
|
}
|