about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/earley
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-03-08 16:58:54 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2020-03-13 22:31:01 +0100
commitbdcba831536204028faa9861b55ee7236cbce329 (patch)
tree4462ed4d23912d37758c4d9956afc0b417895adb /pkgs/development/ocaml-modules/earley
parent4adfbe6c7be299b8be09ae04b2b18c33c1b2261b (diff)
ocamlPackages.earley: disable for OCaml ≥ 4.08
Diffstat (limited to 'pkgs/development/ocaml-modules/earley')
-rw-r--r--pkgs/development/ocaml-modules/earley/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/earley/default.nix b/pkgs/development/ocaml-modules/earley/default.nix
index ab3011361e122..f47231a242e0c 100644
--- a/pkgs/development/ocaml-modules/earley/default.nix
+++ b/pkgs/development/ocaml-modules/earley/default.nix
@@ -1,4 +1,8 @@
-{ lib, fetchurl, buildDunePackage }:
+{ lib, fetchurl, ocaml, buildDunePackage }:
+
+if lib.versionAtLeast ocaml.version "4.08"
+then throw "earley is not available for OCaml ${ocaml.version}"
+else
 
 buildDunePackage rec {
   version = "2.0.0";