summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/ppx_protocol_conv/default.nix
blob: 3467abacb860a9a245e38243614c9e1c7f565bbc (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
37
38
39
40
41
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  ppxlib,
  ppx_expect,
  ppx_sexp_conv,
  sexplib,
  alcotest,
}:

buildDunePackage (finalAttrs: {
  pname = "ppx_protocol_conv";
  version = "5.2.3";

  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "andersfugmann";
    repo = "ppx_protocol_conv";
    tag = finalAttrs.version;
    hash = "sha256-G6zMgHioPUCh2i50cjQ6talN8CYO6UhEaWgi0xe3CWA=";
  };

  propagatedBuildInputs = [ ppxlib ];

  doCheck = true;
  checkInputs = [
    ppx_expect
    ppx_sexp_conv
    sexplib
    alcotest
  ];

  meta = {
    description = "Pluggable serialization and deserialization of ocaml data strucures based on type_conv";
    homepage = "https://github.com/andersfugmann/ppx_protocol_conv";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.sempiternal-aurora ];
  };
})