depot/third_party/nixpkgs/pkgs/development/ocaml-modules/sha/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

27 lines
695 B
Nix

{ lib, fetchurl, buildDunePackage, ocaml, stdlib-shims, ounit2 }:
buildDunePackage rec {
pname = "sha";
version = "1.15.4";
src = fetchurl {
url = "https://github.com/djs55/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
hash = "sha256-beWxITmxmZzp30zHiloxiGwqVHydRIvyhT+LU7zx8bE=";
};
propagatedBuildInputs = [
stdlib-shims
];
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [
ounit2
];
meta = with lib; {
description = "Binding for SHA interface code in OCaml";
homepage = "https://github.com/djs55/ocaml-sha/";
license = licenses.isc;
maintainers = with maintainers; [ arthurteisseire ];
};
}