diff --git a/pkgs/development/ocaml-modules/magick/default.nix b/pkgs/development/ocaml-modules/magick/default.nix index 021962154bd..ca6ab458fff 100644 --- a/pkgs/development/ocaml-modules/magick/default.nix +++ b/pkgs/development/ocaml-modules/magick/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchurl, which, pkgconfig, ocaml, findlib, imagemagick }: +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "magick is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation { name = "ocaml-magick-0.34"; src = fetchurl {