ocamlPackages.lens: disable for OCaml ≥ 4.10

This commit is contained in:
Vincent Laporte 2020-05-22 11:10:04 +02:00 committed by Vincent Laporte
parent 147aded7df
commit 03cd92fe70

View file

@ -1,4 +1,8 @@
{ lib, fetchzip, ppx_deriving, ppxfind, buildDunePackage }:
{ lib, ocaml, fetchzip, ppx_deriving, ppxfind, buildDunePackage }:
if lib.versionAtLeast ocaml.version "4.10"
then throw "lens is not available for OCaml ${ocaml.version}"
else
buildDunePackage rec {
pname = "lens";