3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/sha/default.nix

30 lines
673 B
Nix
Raw Normal View History

2021-06-06 11:50:06 +01:00
{ lib, fetchurl, buildDunePackage, stdlib-shims, ounit }:
2021-01-28 11:21:47 +00:00
buildDunePackage rec {
pname = "sha";
2021-06-06 11:50:06 +01:00
version = "1.14";
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-06-06 11:50:06 +01:00
sha256 = "114vydrfdp7fayigvgk3ckiby0kh4n49c1j53v8k40gk6nzm3l19";
2021-01-28 11:21:47 +00:00
};
2021-06-06 11:50:06 +01:00
useDune2 = true;
propagatedBuildInputs = [
stdlib-shims
];
2021-01-28 11:21:47 +00:00
doCheck = true;
2021-06-06 11:50:06 +01: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 11:50:06 +01:00
homepage = "https://github.com/djs55/ocaml-sha/";
2021-01-28 11:21:47 +00:00
license = licenses.isc;
2021-06-06 11:50:06 +01:00
maintainers = with maintainers; [ arthurteisseire ];
2021-01-28 11:21:47 +00:00
};
}