ocamlPackages.cstruct-sexp: disable tests for OCaml < 4.03

This commit is contained in:
Vincent Laporte 2020-04-09 18:58:32 +02:00
parent 942d312a69
commit bab29617d1
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -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 ];