From f2ae2c9b8f0bc2b495634444fb41056d817d7b93 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 23 Jul 2018 06:22:46 +0000 Subject: [PATCH] =?UTF-8?q?ocamlPackages.estring:=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/estring/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/estring/default.nix b/pkgs/development/ocaml-modules/estring/default.nix index c0c8eb51f71..9f04dac343c 100644 --- a/pkgs/development/ocaml-modules/estring/default.nix +++ b/pkgs/development/ocaml-modules/estring/default.nix @@ -1,4 +1,8 @@ -{ stdenv, buildOcaml, fetchurl }: +{ stdenv, buildOcaml, ocaml, fetchurl }: + +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "estring is not available for OCaml ${ocaml.version}" +else buildOcaml rec { name = "estring";