ocamlPackages.earley: disable for OCaml ≥ 4.08

This commit is contained in:
Vincent Laporte 2020-03-08 16:58:54 +01:00 committed by Vincent Laporte
parent 4adfbe6c7b
commit bdcba83153

View file

@ -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";