@@ -1,27 +1,27 @@
1−{ lib, fetchurl, fetchpatch, buildDunePackage
1+{ lib, ocaml, fetchurl, buildDunePackage
22, bigarray-compat, eqaf, stdlib-shims
3−, alcotest
3+, alcotest, astring, bos, findlib, fpath
44}:
55
66buildDunePackage rec {
77 pname = "digestif";
8− version = "0.8.0";
8+ version = "0.9.0";
9+
10+ useDune2 = true;
911
1012 src = fetchurl {
1113 url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz";
12− sha256 = "09g4zngqiw97cljv8ds4m063wcxz3y7c7vzaprsbpjzi0ja5jdcy";
14+ sha256 = "0vk9prgjp46xs8qizq7szkj6mqjj2ymncs2016bc8zswcdc1a3q4";
1315 };
1416
15− # Fix tests with alcotest ≥ 1
16− patches = [ (fetchpatch {
17− url = "https://github.com/mirage/digestif/commit/b65d996c692d75da0a81323253429e07d14b72b6.patch";
18− sha256 = "0sf7qglcp19dhs65pwrrc7d9v57icf18jsrhpmvwskx8b4dchfiv";
19− })];
20−
21− buildInputs = lib.optional doCheck alcotest;
2217 propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ];
2318
24− doCheck = true;
19+ checkInputs = [ alcotest astring bos fpath ];
20+ doCheck = lib.versionAtLeast ocaml.version "4.05";
21+
22+ postCheck = ''
23+ ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml
24+ '';
2525
2626 meta = {
2727 description = "Simple hash algorithms in OCaml";