summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/ppx_deriving_protobuf/default.nix
blob: 06b733c6b958eb07e6adfbe7ab51447710e7e793 (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
{
  lib,
  fetchurl,
  buildDunePackage,
  cppo,
  ppx_deriving,
  ppxlib,
  dune-configurator,
}:

buildDunePackage (finalAttrs: {
  pname = "ppx_deriving_protobuf";
  version = "3.0.0";

  duneVersion = "3";

  src = fetchurl {
    url = "https://github.com/ocaml-ppx/ppx_deriving_protobuf/releases/download/v${finalAttrs.version}/ppx_deriving_protobuf-v${finalAttrs.version}.tbz";
    sha256 = "1dc1vxnkd0cnrgac5v3zbaj2lq1d2w8118mp1cmsdxylp06yz1sj";
  };

  nativeBuildInputs = [ cppo ];
  buildInputs = [
    ppxlib
    dune-configurator
  ];
  propagatedBuildInputs = [ ppx_deriving ];

  meta = {
    homepage = "https://github.com/ocaml-ppx/ppx_deriving_protobuf";
    description = "Protocol Buffers codec generator for OCaml";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.vyorkin ];
  };
})