From bab29617d10061836c4fc09fe0016e8e39a8fa49 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 9 Apr 2020 18:58:32 +0200 Subject: [PATCH] ocamlPackages.cstruct-sexp: disable tests for OCaml < 4.03 --- pkgs/development/ocaml-modules/cstruct/sexp.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix index d4b311181d5..d0df442013f 100644 --- a/pkgs/development/ocaml-modules/cstruct/sexp.nix +++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix @@ -1,4 +1,4 @@ -{ lib, buildDunePackage, alcotest, cstruct, sexplib }: +{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }: if !lib.versionAtLeast (cstruct.version or "1") "3" then cstruct @@ -8,7 +8,7 @@ buildDunePackage rec { pname = "cstruct-sexp"; inherit (cstruct) version src meta; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.03"; checkInputs = lib.optional doCheck alcotest; propagatedBuildInputs = [ cstruct sexplib ];