2020-11-07 05:35:57 -08:00
|
|
|
{ lib, ocaml, fetchurl, buildDunePackage
|
2019-10-06 23:48:15 -07:00
|
|
|
, bigarray-compat, eqaf, stdlib-shims
|
2020-11-07 05:35:57 -08:00
|
|
|
, alcotest, astring, bos, findlib, fpath
|
2019-10-06 23:48:15 -07:00
|
|
|
}:
|
2017-12-05 10:19:25 -08:00
|
|
|
|
2019-10-06 23:48:15 -07:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "digestif";
|
2021-02-23 23:21:18 -08:00
|
|
|
version = "1.0.0";
|
2020-11-07 05:35:57 -08:00
|
|
|
|
|
|
|
useDune2 = true;
|
2017-12-05 10:19:25 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-06 23:48:15 -07:00
|
|
|
url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz";
|
2021-02-23 23:21:18 -08:00
|
|
|
sha256 = "11188ya6ksb0p0zvs6saz3qxv4a8pyy8m3sq35f3qfxrxhghqi99";
|
2017-12-05 10:19:25 -08:00
|
|
|
};
|
|
|
|
|
2019-10-06 23:48:15 -07:00
|
|
|
propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ];
|
2017-12-05 10:19:25 -08:00
|
|
|
|
2020-11-07 05:35:57 -08:00
|
|
|
checkInputs = [ alcotest astring bos fpath ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
|
|
|
|
|
|
|
postCheck = ''
|
|
|
|
ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml
|
|
|
|
'';
|
2017-12-05 10:19:25 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple hash algorithms in OCaml";
|
|
|
|
homepage = "https://github.com/mirage/digestif";
|
2019-10-06 23:48:15 -07:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-12-05 10:19:25 -08:00
|
|
|
};
|
|
|
|
}
|