diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-05-22 11:10:04 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-05-27 10:12:22 +0200 |
commit | 03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4 (patch) | |
tree | 656e25e0a5f8b04935ffb8bcf5f9fc6c27aa899d | |
parent | 147aded7df024288a387e1dde290f79f964e41bf (diff) | |
download | nixpkgs-03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4.tar nixpkgs-03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4.tar.gz nixpkgs-03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4.tar.bz2 nixpkgs-03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4.tar.lz nixpkgs-03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4.tar.xz nixpkgs-03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4.tar.zst nixpkgs-03cd92fe70a6a7bdcfc958bcdba58d0664ff19c4.zip |
ocamlPackages.lens: disable for OCaml ≥ 4.10
-rw-r--r-- | pkgs/development/ocaml-modules/lens/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/lens/default.nix b/pkgs/development/ocaml-modules/lens/default.nix index 4a9706b4ba8..c26b3dbe737 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"; |