From 03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 22 May 2020 11:10:04 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.lens:=20disable=20for=20OCaml=20?= =?UTF-8?q?=E2=89=A5=204.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/lens/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/lens/default.nix b/pkgs/development/ocaml-modules/lens/default.nix index 4a9706b4ba83..c26b3dbe7374 100644 --- a/pkgs/development/ocaml-modules/lens/default.nix +++ b/pkgs/development/ocaml-modules/lens/default.nix @@ -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";