summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/asn1-combinators/default.nix
blob: c40db11752c8bd9b72eaeb5d1c75e1069fd02acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildDunePackage,
  fetchurl,
  ptime,
  alcotest,
  ohex,
}:

buildDunePackage (finalAttrs: {
  minimalOCamlVersion = "4.13.0";

  pname = "asn1-combinators";
  version = "0.3.2";

  src = fetchurl {
    url = "https://github.com/mirleft/ocaml-asn1-combinators/releases/download/v${finalAttrs.version}/asn1-combinators-${finalAttrs.version}.tbz";
    hash = "sha256-KyaYX24nIgc9zZ+ENVvWdX4SZDtaSOMLPAf/fPsNin8=";
  };

  propagatedBuildInputs = [ ptime ];

  doCheck = true;
  checkInputs = [
    alcotest
    ohex
  ];

  meta = {
    homepage = "https://github.com/mirleft/ocaml-asn1-combinators";
    changelog = "https://github.com/mirleft/ocaml-asn1-combinators/blob/v${finalAttrs.version}/CHANGES.md";
    description = "Combinators for expressing ASN.1 grammars in OCaml";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ vbgl ];
  };
})