about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/digestif/default.nix
blob: f0a98249d6da8319b4e7e4c56b96afe180496d16 (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
{ lib, fetchurl, buildDunePackage
, bigarray-compat, eqaf, stdlib-shims
, alcotest
}:

buildDunePackage rec {
  pname = "digestif";
  version = "0.8.0";

  src = fetchurl {
    url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz";
    sha256 = "09g4zngqiw97cljv8ds4m063wcxz3y7c7vzaprsbpjzi0ja5jdcy";
  };

  buildInputs = lib.optional doCheck alcotest;
  propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ];

  doCheck = true;

  meta = {
    description = "Simple hash algorithms in OCaml";
    homepage = "https://github.com/mirage/digestif";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.vbgl ];
  };
}