mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
36 lines
823 B
Nix
36 lines
823 B
Nix
{
|
|
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 ];
|
|
};
|
|
})
|