From a04f3afc3c4f512a1ae8a44901493757ff09b4ce Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 21 Aug 2018 13:26:56 +0000 Subject: [PATCH] =?UTF-8?q?ocamlPackages.faillib:=20disable=20for=20OCaml?= =?UTF-8?q?=20=E2=89=A5=204.06?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/faillib/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/faillib/default.nix b/pkgs/development/ocaml-modules/faillib/default.nix index 98acc8032e3..9b80433b6d1 100644 --- a/pkgs/development/ocaml-modules/faillib/default.nix +++ b/pkgs/development/ocaml-modules/faillib/default.nix @@ -1,4 +1,8 @@ -{stdenv, buildOcaml, fetchurl, herelib, camlp4}: +{ stdenv, buildOcaml, fetchurl, ocaml, herelib, camlp4 }: + +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "faillib-111.17.00 is not available for OCaml ${ocaml.version}" +else buildOcaml rec { minimumSupportedOcamlVersion = "4.00";