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