ocamlPackages.angstrom: disable tests for OCaml < 4.05

This commit is contained in:
Vincent Laporte 2020-04-16 08:58:55 +02:00 committed by Vincent Laporte
parent 1bdf4d121b
commit f2788cdf11

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildDunePackage, alcotest, result, bigstringaf }: { lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, result, bigstringaf }:
buildDunePackage rec { buildDunePackage rec {
pname = "angstrom"; pname = "angstrom";
@ -13,14 +13,14 @@ buildDunePackage rec {
sha256 = "0w0wavqzdy2hrh7cjyl9w72ad4vndhwhknwvyacvkwkja5wys5b2"; sha256 = "0w0wavqzdy2hrh7cjyl9w72ad4vndhwhknwvyacvkwkja5wys5b2";
}; };
buildInputs = [ alcotest ]; checkInputs = [ alcotest ];
propagatedBuildInputs = [ bigstringaf result ]; propagatedBuildInputs = [ bigstringaf result ];
doCheck = true; doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = { meta = {
homepage = "https://github.com/inhabitedtype/angstrom"; homepage = "https://github.com/inhabitedtype/angstrom";
description = "OCaml parser combinators built for speed and memory efficiency"; description = "OCaml parser combinators built for speed and memory efficiency";
license = stdenv.lib.licenses.bsd3; license = lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ sternenseemann ]; maintainers = with lib.maintainers; [ sternenseemann ];
}; };
} }