2020-11-07 14:35:57 +01:00
|
|
|
{ lib, ocaml, fetchurl, buildDunePackage
|
2022-02-22 10:59:04 +01:00
|
|
|
, pkg-config, which
|
2022-07-03 16:55:13 +02:00
|
|
|
, eqaf
|
2020-11-07 14:35:57 +01:00
|
|
|
, alcotest, astring, bos, findlib, fpath
|
2019-10-07 08:48:15 +02:00
|
|
|
}:
|
2017-12-05 19:19:25 +01:00
|
|
|
|
2019-10-07 08:48:15 +02:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "digestif";
|
2022-07-03 16:55:13 +02:00
|
|
|
version = "1.1.2";
|
2020-11-07 14:35:57 +01:00
|
|
|
|
2022-07-03 16:55:13 +02:00
|
|
|
minimalOCamlVersion = "4.08";
|
2017-12-05 19:19:25 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-03 16:55:13 +02:00
|
|
|
url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-${version}.tbz";
|
|
|
|
sha256 = "sha256-edNM5ROxFIV+OAqr328UcyGPGwXdflHQOJB3ntAbRmY=";
|
2017-12-05 19:19:25 +01:00
|
|
|
};
|
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
nativeBuildInputs = [ findlib which ];
|
|
|
|
buildInputs = [ ocaml ];
|
|
|
|
|
2022-07-03 16:55:13 +02:00
|
|
|
propagatedBuildInputs = [ eqaf ];
|
2022-02-22 10:59:04 +01:00
|
|
|
|
2020-11-07 14:35:57 +01:00
|
|
|
checkInputs = [ alcotest astring bos fpath ];
|
2022-07-03 16:55:13 +02:00
|
|
|
doCheck = true;
|
2020-11-07 14:35:57 +01:00
|
|
|
|
|
|
|
postCheck = ''
|
|
|
|
ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml
|
|
|
|
'';
|
2017-12-05 19:19:25 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple hash algorithms in OCaml";
|
|
|
|
homepage = "https://github.com/mirage/digestif";
|
2019-10-07 08:48:15 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-12-05 19:19:25 +01:00
|
|
|
};
|
|
|
|
}
|