2020-11-07 13:35:57 +00:00
|
|
|
{ lib, ocaml, fetchurl, buildDunePackage
|
2022-07-03 14:55:13 +00:00
|
|
|
, eqaf
|
2020-11-07 13:35:57 +00:00
|
|
|
, alcotest, astring, bos, findlib, fpath
|
2019-10-07 06:48:15 +00:00
|
|
|
}:
|
2017-12-05 18:19:25 +00:00
|
|
|
|
2019-10-07 06:48:15 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "digestif";
|
2023-03-24 12:53:18 +00:00
|
|
|
version = "1.1.4";
|
2020-11-07 13:35:57 +00:00
|
|
|
|
2022-07-03 14:55:13 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-24 09:00:22 +00:00
|
|
|
duneVersion = "3";
|
2017-12-05 18:19:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-03 14:55:13 +00:00
|
|
|
url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-${version}.tbz";
|
2023-03-24 12:53:18 +00:00
|
|
|
hash = "sha256-w3k+cg8NqAVPYobFRcghp/6+iC5/TlSX7ImxWjU1EeE=";
|
2017-12-05 18:19:25 +00:00
|
|
|
};
|
|
|
|
|
2022-07-03 14:55:13 +00:00
|
|
|
propagatedBuildInputs = [ eqaf ];
|
2022-02-22 09:59:04 +00:00
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ alcotest astring bos fpath ];
|
2022-07-03 14:55:13 +00:00
|
|
|
doCheck = true;
|
2020-11-07 13:35:57 +00:00
|
|
|
|
|
|
|
postCheck = ''
|
|
|
|
ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml
|
|
|
|
'';
|
2017-12-05 18:19:25 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple hash algorithms in OCaml";
|
|
|
|
homepage = "https://github.com/mirage/digestif";
|
2019-10-07 06:48:15 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-12-05 18:19:25 +00:00
|
|
|
};
|
|
|
|
}
|