ocamlPackages.ppx_deriving_protobuf: disable for OCaml ≥ 4.11

This commit is contained in:
Vincent Laporte 2020-11-20 06:40:45 +01:00 committed by Vincent Laporte
parent 2a84a4981d
commit 2044e44cf4

View File

@ -1,6 +1,10 @@
{ stdenv, fetchFromGitHub, buildDunePackage, cppo, ppx_tools, ppx_deriving
{ 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
buildDunePackage rec {
pname = "ppx_deriving_protobuf";
version = "2.7";
@ -14,7 +18,7 @@ buildDunePackage rec {
buildInputs = [ cppo ppx_tools ppxfind ppx_deriving ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/ocaml-ppx/ppx_deriving_protobuf";
description = "A Protocol Buffers codec generator for OCaml";
license = licenses.mit;