ocamlPackages.ppx_deriving_protobuf: 2.7 → 3.0.0
This commit is contained in:
parent
a115355b20
commit
edf3a8376e
|
@ -1,28 +1,24 @@
|
||||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, cppo, ppx_tools, ppx_deriving
|
{ lib, fetchurl, buildDunePackage, cppo, ppx_deriving
|
||||||
, ppxfind }:
|
, ppxlib
|
||||||
|
}:
|
||||||
if lib.versionAtLeast ocaml.version "4.11"
|
|
||||||
then throw "ppx_deriving_protobuf is not available for OCaml ${ocaml.version}"
|
|
||||||
else
|
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "ppx_deriving_protobuf";
|
pname = "ppx_deriving_protobuf";
|
||||||
version = "2.7";
|
version = "3.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
useDune2 = true;
|
||||||
owner = "ocaml-ppx";
|
|
||||||
repo = pname;
|
src = fetchurl {
|
||||||
rev = "v${version}";
|
url = "https://github.com/ocaml-ppx/ppx_deriving_protobuf/releases/download/v${version}/ppx_deriving_protobuf-v${version}.tbz";
|
||||||
sha256 = "0aq4f3gbkhhai0c8i5mcw2kpqy8l610f4dknwkrxh0nsizwbwryn";
|
sha256 = "1dc1vxnkd0cnrgac5v3zbaj2lq1d2w8118mp1cmsdxylp06yz1sj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cppo ppx_tools ppxfind ppx_deriving ];
|
buildInputs = [ cppo ppxlib ppx_deriving ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ocaml-ppx/ppx_deriving_protobuf";
|
homepage = "https://github.com/ocaml-ppx/ppx_deriving_protobuf";
|
||||||
description = "A Protocol Buffers codec generator for OCaml";
|
description = "A Protocol Buffers codec generator for OCaml";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.vyorkin ];
|
maintainers = [ maintainers.vyorkin ];
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue