summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/type_conv
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-06-26 05:02:42 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-06-26 05:02:42 +0200
commite082162f09a74ef0c5c962da6c27d33f77c7af56 (patch)
treebabd8b43acf5a0f9de754405cc3f506204b4e448 /pkgs/development/ocaml-modules/type_conv
parent41b3b2c0776ff637fd33d4b12f33cbbbf95e8017 (diff)
downloadnixpkgs-e082162f09a74ef0c5c962da6c27d33f77c7af56.tar
nixpkgs-e082162f09a74ef0c5c962da6c27d33f77c7af56.tar.gz
nixpkgs-e082162f09a74ef0c5c962da6c27d33f77c7af56.tar.bz2
nixpkgs-e082162f09a74ef0c5c962da6c27d33f77c7af56.tar.lz
nixpkgs-e082162f09a74ef0c5c962da6c27d33f77c7af56.tar.xz
nixpkgs-e082162f09a74ef0c5c962da6c27d33f77c7af56.tar.zst
nixpkgs-e082162f09a74ef0c5c962da6c27d33f77c7af56.zip
ocamlPackages.type_conv-{108,109}: disable for OCaml ≥ 4.03
Diffstat (limited to 'pkgs/development/ocaml-modules/type_conv')
-rw-r--r--pkgs/development/ocaml-modules/type_conv/108.08.00.nix4
-rw-r--r--pkgs/development/ocaml-modules/type_conv/109.60.01.nix4
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/type_conv/108.08.00.nix b/pkgs/development/ocaml-modules/type_conv/108.08.00.nix
index 4a3d8c58f0b..f17e5a7b89e 100644
--- a/pkgs/development/ocaml-modules/type_conv/108.08.00.nix
+++ b/pkgs/development/ocaml-modules/type_conv/108.08.00.nix
@@ -1,6 +1,8 @@
 {stdenv, fetchurl, ocaml, findlib, camlp4}:
 
-assert stdenv.lib.versionOlder "3.12" ocaml.version;
+if !stdenv.lib.versionAtLeast ocaml.version "3.12"
+|| stdenv.lib.versionAtLeast ocaml.version "4.03"
+then throw "type_conv-108.08.00 is not available for OCaml ${ocaml.version}" else
 
 stdenv.mkDerivation {
   name = "ocaml-type_conv-108.08.00";
diff --git a/pkgs/development/ocaml-modules/type_conv/109.60.01.nix b/pkgs/development/ocaml-modules/type_conv/109.60.01.nix
index ae2b62f6b36..5e6f5967d13 100644
--- a/pkgs/development/ocaml-modules/type_conv/109.60.01.nix
+++ b/pkgs/development/ocaml-modules/type_conv/109.60.01.nix
@@ -1,6 +1,8 @@
 {stdenv, fetchurl, ocaml, findlib, camlp4}:
 
-assert stdenv.lib.versionOlder "4.00" ocaml.version;
+if !stdenv.lib.versionAtLeast ocaml.version "4.00"
+|| stdenv.lib.versionAtLeast ocaml.version "4.03"
+then throw "type_conv-109.60.01 is not available for OCaml ${ocaml.version}" else
 
 stdenv.mkDerivation {
   name = "ocaml-type_conv-109.60.01";