ocamlPackages.ppx_deriving_protobuf: disable for OCaml ≥ 4.11
This commit is contained in:
parent
2a84a4981d
commit
2044e44cf4
|
@ -1,6 +1,10 @@
|
||||||
{ stdenv, fetchFromGitHub, buildDunePackage, cppo, ppx_tools, ppx_deriving
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, cppo, ppx_tools, ppx_deriving
|
||||||
, ppxfind }:
|
, ppxfind }:
|
||||||
|
|
||||||
|
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 = "2.7";
|
||||||
|
@ -14,7 +18,7 @@ buildDunePackage rec {
|
||||||
|
|
||||||
buildInputs = [ cppo ppx_tools ppxfind ppx_deriving ];
|
buildInputs = [ cppo ppx_tools ppxfind ppx_deriving ];
|
||||||
|
|
||||||
meta = with stdenv.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;
|
||||||
|
|
Loading…
Reference in New Issue