Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, ocaml, fetchurl, buildDunePackage
2, eqaf
3, alcotest, astring, bos, findlib, fpath
4}:
5
6buildDunePackage rec {
7 pname = "digestif";
8 version = "1.1.4";
9
10 minimalOCamlVersion = "4.08";
11 duneVersion = "3";
12
13 src = fetchurl {
14 url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-${version}.tbz";
15 hash = "sha256-w3k+cg8NqAVPYobFRcghp/6+iC5/TlSX7ImxWjU1EeE=";
16 };
17
18 propagatedBuildInputs = [ eqaf ];
19
20 checkInputs = [ alcotest astring bos fpath ];
21 doCheck = true;
22
23 postCheck = ''
24 ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml
25 '';
26
27 meta = {
28 description = "Simple hash algorithms in OCaml";
29 homepage = "https://github.com/mirage/digestif";
30 license = lib.licenses.mit;
31 maintainers = [ lib.maintainers.vbgl ];
32 };
33}