From 09f33fd8aa06f5b5522cb50b309ee548fc3df4fe Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 20 Sep 2021 18:14:35 +0200 Subject: [PATCH] ocamlPackages.stdint: disable tests with OCaml < 4.08 --- pkgs/development/ocaml-modules/stdint/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/stdint/default.nix b/pkgs/development/ocaml-modules/stdint/default.nix index 52d97e12998..2a4bf2bb633 100644 --- a/pkgs/development/ocaml-modules/stdint/default.nix +++ b/pkgs/development/ocaml-modules/stdint/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, fetchpatch, buildDunePackage, qcheck }: +{ lib, fetchurl, fetchpatch, buildDunePackage, ocaml, qcheck }: buildDunePackage rec { pname = "stdint"; @@ -35,7 +35,7 @@ buildDunePackage rec { 'let pos_int = QCheck.int_range 0 maxi' ''; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ qcheck ]; meta = {