From 24f47da9b35f1ad2410c3938c777207e1864de01 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 21 Aug 2018 18:18:49 +0000 Subject: [PATCH] =?UTF-8?q?ocamlPackages.erm=5Fxml:=20disable=20for=20OCam?= =?UTF-8?q?l=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/erm_xml/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ocaml-modules/erm_xml/default.nix b/pkgs/development/ocaml-modules/erm_xml/default.nix index ae264b657d87..c944752ff6b6 100644 --- a/pkgs/development/ocaml-modules/erm_xml/default.nix +++ b/pkgs/development/ocaml-modules/erm_xml/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchzip, ocaml, findlib, ocamlbuild }: +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "erm_xml is not available for OCaml ${ocaml.version}" +else + let version = "0.3"; in stdenv.mkDerivation {