summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/odn
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-08-21 18:16:40 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2018-08-29 12:49:43 +0000
commit9590e46c05c33baadb6e7663707c0423fd6383ce (patch)
treea50f581679f21fca32d29899d3a2a9d291583c0f /pkgs/development/ocaml-modules/odn
parent0c3cf014e21ba3f9c1dbfb10c32ed773187fc859 (diff)
downloadnixpkgs-9590e46c05c33baadb6e7663707c0423fd6383ce.tar
nixpkgs-9590e46c05c33baadb6e7663707c0423fd6383ce.tar.gz
nixpkgs-9590e46c05c33baadb6e7663707c0423fd6383ce.tar.bz2
nixpkgs-9590e46c05c33baadb6e7663707c0423fd6383ce.tar.lz
nixpkgs-9590e46c05c33baadb6e7663707c0423fd6383ce.tar.xz
nixpkgs-9590e46c05c33baadb6e7663707c0423fd6383ce.tar.zst
nixpkgs-9590e46c05c33baadb6e7663707c0423fd6383ce.zip
ocamlPackages.ocaml_data_notation: disable for OCaml ≥ 4.06
Diffstat (limited to 'pkgs/development/ocaml-modules/odn')
-rw-r--r--pkgs/development/ocaml-modules/odn/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/odn/default.nix b/pkgs/development/ocaml-modules/odn/default.nix
index f30fea2c419..a56a6140f8e 100644
--- a/pkgs/development/ocaml-modules/odn/default.nix
+++ b/pkgs/development/ocaml-modules/odn/default.nix
@@ -1,5 +1,9 @@
 { stdenv, fetchurl, ocaml, findlib, ocamlbuild, type_conv, ounit, camlp4 }:
 
+if stdenv.lib.versionAtLeast ocaml.version "4.06"
+then throw "ocaml-data-notation is not available for OCaml ${ocaml.version}"
+else
+
 stdenv.mkDerivation {
   name = "ocaml-data-notation-0.0.11";