2021-02-04 18:56:05 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cppo, ppx_deriving
|
2022-03-04 10:30:58 +00:00
|
|
|
, ppxlib, dune-configurator
|
2021-02-04 18:56:05 +00:00
|
|
|
}:
|
2020-11-20 05:40:45 +00:00
|
|
|
|
2019-09-13 13:45:47 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_deriving_protobuf";
|
2021-02-04 18:56:05 +00:00
|
|
|
version = "3.0.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2019-09-13 13:45:47 +01:00
|
|
|
|
2021-02-04 18:56:05 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml-ppx/ppx_deriving_protobuf/releases/download/v${version}/ppx_deriving_protobuf-v${version}.tbz";
|
|
|
|
sha256 = "1dc1vxnkd0cnrgac5v3zbaj2lq1d2w8118mp1cmsdxylp06yz1sj";
|
2019-09-13 13:45:47 +01:00
|
|
|
};
|
|
|
|
|
2022-03-04 10:30:58 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
|
|
|
buildInputs = [ ppxlib dune-configurator ];
|
|
|
|
propagatedBuildInputs = [ ppx_deriving ];
|
2019-09-13 13:45:47 +01:00
|
|
|
|
2020-11-20 05:40:45 +00:00
|
|
|
meta = with lib; {
|
2019-09-13 13:45:47 +01:00
|
|
|
homepage = "https://github.com/ocaml-ppx/ppx_deriving_protobuf";
|
|
|
|
description = "A Protocol Buffers codec generator for OCaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|