2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
|
|
|
, cstruct, zarith, bigarray-compat, stdlib-shims, ptime, alcotest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2022-04-15 01:41:22 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pname = "asn1-combinators";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.2.6";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirleft/ocaml-asn1-combinators/releases/download/v${version}/asn1-combinators-v${version}.tbz";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-ASreDYhp72IQY3UsHPjqAm9rxwL+0Q35r1ZojikbGpE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cstruct zarith bigarray-compat stdlib-shims ptime ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mirleft/ocaml-asn1-combinators";
|
|
|
|
description = "Combinators for expressing ASN.1 grammars in OCaml";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|