From 0d0a74f2e57dd261777905443019bdf7fdf6f431 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 14 Dec 2021 11:16:52 +0100 Subject: [PATCH] =?UTF-8?q?ocamlPackages.yaml:=20enable=20tests=20with=20O?= =?UTF-8?q?Caml=20=E2=89=A5=204.08?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/yaml/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/yaml/default.nix b/pkgs/development/ocaml-modules/yaml/default.nix index 2b8714ed103..43481e4c7f3 100644 --- a/pkgs/development/ocaml-modules/yaml/default.nix +++ b/pkgs/development/ocaml-modules/yaml/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildDunePackage +{ lib, fetchurl, buildDunePackage, ocaml , dune-configurator , bos, ctypes, fmt, logs, rresult , mdx, alcotest, crowbar, junit_alcotest, ezjsonm @@ -17,7 +17,9 @@ buildDunePackage rec { buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ bos ctypes rresult ]; - checkInputs = [ fmt logs mdx alcotest crowbar junit_alcotest ezjsonm ]; + # crowbar is not available for OCaml < 4.08 + doCheck = lib.versionAtLeast ocaml.version "4.08"; + checkInputs = [ fmt logs mdx.bin alcotest crowbar junit_alcotest ezjsonm ]; meta = { description = "Parse and generate YAML 1.1 files";