diff --git a/pkgs/development/tools/ocaml/ocamlify/default.nix b/pkgs/development/tools/ocaml/ocamlify/default.nix index 0ac69f86c90d..7dd6843d52f9 100644 --- a/pkgs/development/tools/ocaml/ocamlify/default.nix +++ b/pkgs/development/tools/ocaml/ocamlify/default.nix @@ -1,5 +1,8 @@ { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild }: +lib.throwIf (lib.versionAtLeast ocaml.version "5.0") + "ocamlify is not available for OCaml ${ocaml.version}" + stdenv.mkDerivation rec { pname = "ocamlify"; version = "0.0.2";