2020-04-14 20:00:03 +01:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
|
|
|
, cstruct, zarith, bigarray-compat, stdlib-shims, ptime, alcotest
|
2018-01-15 04:01:50 +00:00
|
|
|
}:
|
|
|
|
|
2020-04-14 20:00:03 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
minimumOCamlVersion = "4.05";
|
2015-02-26 07:33:43 +00:00
|
|
|
|
2020-04-14 20:00:03 +01:00
|
|
|
pname = "asn1-combinators";
|
2020-11-06 12:33:43 +00:00
|
|
|
version = "0.2.4";
|
2015-02-26 07:33:43 +00:00
|
|
|
|
2020-11-06 13:02:00 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-14 20:00:03 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirleft/ocaml-asn1-combinators/releases/download/v${version}/asn1-combinators-v${version}.tbz";
|
2020-11-06 12:33:43 +00:00
|
|
|
sha256 = "09rn5wwqhwg7x51b9ycl15s7007hgha6lwaz2bpw85fr70jq3i9r";
|
2015-02-26 07:33:43 +00:00
|
|
|
};
|
|
|
|
|
2020-04-14 20:00:03 +01:00
|
|
|
propagatedBuildInputs = [ cstruct zarith bigarray-compat stdlib-shims ptime ];
|
2016-11-13 10:42:42 +00:00
|
|
|
|
2015-06-02 10:54:54 +01:00
|
|
|
doCheck = true;
|
2020-04-14 20:00:03 +01:00
|
|
|
checkInputs = [ alcotest ];
|
2015-06-02 10:54:54 +01:00
|
|
|
|
2020-04-14 20:00:03 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mirleft/ocaml-asn1-combinators";
|
2015-02-26 07:33:43 +00:00
|
|
|
description = "Combinators for expressing ASN.1 grammars in OCaml";
|
2020-04-14 20:00:03 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2015-02-26 07:33:43 +00:00
|
|
|
};
|
|
|
|
}
|