From 23fd7e452fd0759bbbc9d01940a8b7de261fe99f Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 21 Aug 2018 13:45:30 +0000 Subject: [PATCH] =?UTF-8?q?ocamlPackages.frontc:=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/frontc/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/frontc/default.nix b/pkgs/development/ocaml-modules/frontc/default.nix index ecf1ddc8fbae..e5330789e262 100644 --- a/pkgs/development/ocaml-modules/frontc/default.nix +++ b/pkgs/development/ocaml-modules/frontc/default.nix @@ -1,4 +1,8 @@ -{lib, buildOcaml, fetchurl}: +{ lib, buildOcaml, fetchurl, ocaml }: + +if lib.versionAtLeast ocaml.version "4.06" +then throw "FrontC is not available for OCaml ${ocaml.version}" +else buildOcaml rec { name = "FrontC";