about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/sha/default.nix
blob: 4cbb658b6549ca84dd1df28b75b43578e853c047 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, fetchurl, buildDunePackage, stdlib-shims, dune-configurator, ounit }:

buildDunePackage rec {
  pname = "sha";
  version = "1.15.1";

  src = fetchurl {
    url = "https://github.com/djs55/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
    sha256 = "sha256-cRtjydvwgXgimi6F3C48j7LrWgfMO6m9UJKjKlxvp0Q=";
  };

  useDune2 = true;

  buildInputs = [ dune-configurator ];

  propagatedBuildInputs = [
    stdlib-shims
  ];

  doCheck = true;
  checkInputs = [
    ounit
  ];

  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 ];
  };
}