From ea276e21cf4d1b83e3169f2bab2e8361a78e3e1e Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 21 Aug 2018 16:17:57 +0000 Subject: [PATCH] =?UTF-8?q?ocamlPackages.pa=5Founit:=20disable=20for=20OCa?= =?UTF-8?q?ml=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/pa_ounit/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/pa_ounit/default.nix b/pkgs/development/ocaml-modules/pa_ounit/default.nix index fa4ecfcc28b..2471c855cf5 100644 --- a/pkgs/development/ocaml-modules/pa_ounit/default.nix +++ b/pkgs/development/ocaml-modules/pa_ounit/default.nix @@ -1,4 +1,8 @@ -{stdenv, buildOcaml, fetchurl, ounit}: +{ stdenv, buildOcaml, ocaml, fetchurl, ounit }: + +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "pa_ounit is not available for OCaml ${ocaml.version}" +else buildOcaml rec { name = "pa_ounit";