diff --git a/pkgs/development/ocaml-modules/http/default.nix b/pkgs/development/ocaml-modules/http/default.nix index f25a6f97b39..b9b530ac599 100644 --- a/pkgs/development/ocaml-modules/http/default.nix +++ b/pkgs/development/ocaml-modules/http/default.nix @@ -1,5 +1,9 @@ {stdenv, fetchurl, ocaml_pcre, ocamlnet, ocaml, findlib, camlp4}: +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "ocaml-http is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation { name = "ocaml-http-0.1.5";