diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/tls/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/tls/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/tls/default.nix b/pkgs/development/ocaml-modules/tls/default.nix index 39f82772ffce1..1e031b135d29e 100644 --- a/pkgs/development/ocaml-modules/tls/default.nix +++ b/pkgs/development/ocaml-modules/tls/default.nix @@ -6,6 +6,10 @@ with stdenv.lib; let withLwt = lwt != null; in +if !versionAtLeast ocaml.version "4.04" +then throw "tls is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation rec { version = "0.9.0"; name = "ocaml${ocaml.version}-tls-${version}"; |