ocamlPackages.re: disable tests with OCaml < 4.04

This commit is contained in:
Vincent Laporte 2020-08-28 07:37:15 +02:00 committed by Vincent Laporte
parent df8eed0ccf
commit 745a86726a

View File

@ -1,4 +1,4 @@
{ stdenv, fetchzip, buildDunePackage, ounit, seq }:
{ lib, fetchzip, buildDunePackage, ocaml, ounit, seq }:
buildDunePackage rec {
pname = "re";
@ -11,14 +11,14 @@ buildDunePackage rec {
sha256 = "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss";
};
buildInputs = [ ounit ];
buildInputs = lib.optional doCheck ounit;
propagatedBuildInputs = [ seq ];
doCheck = true;
doCheck = lib.versionAtLeast ocaml.version "4.04";
meta = {
homepage = "https://github.com/ocaml/ocaml-re";
description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
license = stdenv.lib.licenses.lgpl2;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
license = lib.licenses.lgpl2;
maintainers = with lib.maintainers; [ vbgl ];
};
}