From 456089b74db4d93e33dff2c3f8abd58f6281f738 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 26 Jun 2017 19:38:47 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.mlgmp:=20disable=20for=20OCaml=20?= =?UTF-8?q?=E2=89=A5=204.03?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/mlgmp/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/ocaml-modules/mlgmp/default.nix b/pkgs/development/ocaml-modules/mlgmp/default.nix index 0c51fe71ce1d..20455cc60167 100644 --- a/pkgs/development/ocaml-modules/mlgmp/default.nix +++ b/pkgs/development/ocaml-modules/mlgmp/default.nix @@ -1,5 +1,8 @@ {stdenv, fetchurl, ocaml, findlib, gmp, mpfr, ncurses }: +if stdenv.lib.versionAtLeast ocaml.version "4.03" +then throw "mlgmp is not available for OCaml ${ocaml.version}" else + let pname = "mlgmp"; in