summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-11-20 06:40:45 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2020-11-27 08:30:24 +0100
commit2044e44cf4fe548ebeb9ded83d1a7d9bd4c99601 (patch)
treef50226cbb3f9dd99f26e9c0c8ce4d74ef114d88d /pkgs/development/ocaml-modules
parent2a84a4981d3250191a34e3ece8b468a1fc1ab6b5 (diff)
ocamlPackages.ppx_deriving_protobuf: disable for OCaml ≥ 4.11
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/ppx_deriving_protobuf/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/ppx_deriving_protobuf/default.nix b/pkgs/development/ocaml-modules/ppx_deriving_protobuf/default.nix
index 4af711ce3950..f85e32d72c7f 100644
--- a/pkgs/development/ocaml-modules/ppx_deriving_protobuf/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_deriving_protobuf/default.nix
@@ -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;