From 9d526675368dd51134151b6cc3fd0e94a5b5c2bc Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 8 Jul 2017 11:31:11 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.qtest:=20requires=20OCaml=20?= =?UTF-8?q?=E2=89=A5=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/qtest/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ocaml-modules/qtest/default.nix b/pkgs/development/ocaml-modules/qtest/default.nix index 6d5f8ecc683..4d3ab0ddb4f 100644 --- a/pkgs/development/ocaml-modules/qtest/default.nix +++ b/pkgs/development/ocaml-modules/qtest/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchzip, ocaml, findlib, ocamlbuild, ounit }: +if !stdenv.lib.versionAtLeast ocaml.version "4" +then throw "qtest is not available for OCaml ${ocaml.version}" +else + let version = "2.2"; in stdenv.mkDerivation {