summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocamlsdl
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-08-29 12:44:12 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2018-08-29 12:49:45 +0000
commit20af031a2ffa3cbcaacf10f4668e74ecf1380095 (patch)
tree9833280f096b943873c508c79a2807bbd232cd24 /pkgs/development/ocaml-modules/ocamlsdl
parente63e4c11cc25b2bd8f67eec138eb7f19f87695fe (diff)
downloadnixpkgs-20af031a2ffa3cbcaacf10f4668e74ecf1380095.tar
nixpkgs-20af031a2ffa3cbcaacf10f4668e74ecf1380095.tar.gz
nixpkgs-20af031a2ffa3cbcaacf10f4668e74ecf1380095.tar.bz2
nixpkgs-20af031a2ffa3cbcaacf10f4668e74ecf1380095.tar.lz
nixpkgs-20af031a2ffa3cbcaacf10f4668e74ecf1380095.tar.xz
nixpkgs-20af031a2ffa3cbcaacf10f4668e74ecf1380095.tar.zst
nixpkgs-20af031a2ffa3cbcaacf10f4668e74ecf1380095.zip
ocamlPackages.ocamlsdl: disable for OCaml ≥ 4.06
Diffstat (limited to 'pkgs/development/ocaml-modules/ocamlsdl')
-rw-r--r--pkgs/development/ocaml-modules/ocamlsdl/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocamlsdl/default.nix b/pkgs/development/ocaml-modules/ocamlsdl/default.nix
index e8441cf6937..8cfe43a5d32 100644
--- a/pkgs/development/ocaml-modules/ocamlsdl/default.nix
+++ b/pkgs/development/ocaml-modules/ocamlsdl/default.nix
@@ -4,6 +4,10 @@ let
   pname = "ocamlsdl";
 in
 
+if stdenv.lib.versionAtLeast ocaml.version "4.06"
+then throw "${pname} is not available for OCaml ${ocaml.version}"
+else
+
 stdenv.mkDerivation rec {
   name = "${pname}-${version}";
   version = "0.9.1";