From 5f16f0a9cf2b5b5249382e19b8e2206dbfb9fd12 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 20 Sep 2021 18:14:27 +0200 Subject: [PATCH] ocamlPackages.batteries: disable tests with OCaml < 4.08 --- pkgs/development/ocaml-modules/batteries/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/batteries/default.nix b/pkgs/development/ocaml-modules/batteries/default.nix index 7785a70e0509..b88b7c59956e 100644 --- a/pkgs/development/ocaml-modules/batteries/default.nix +++ b/pkgs/development/ocaml-modules/batteries/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, qtest, num }: +{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, qtest, num +, doCheck ? lib.versionAtLeast ocaml.version "4.08" && !stdenv.isAarch64 +}: let version = "3.3.0"; in @@ -14,7 +16,7 @@ stdenv.mkDerivation { checkInputs = [ qtest ]; propagatedBuildInputs = [ num ]; - doCheck = lib.versionAtLeast ocaml.version "4.04" && !stdenv.isAarch64; + inherit doCheck; checkTarget = "test"; createFindlibDestdir = true;