ocamlPackages.cstruct-sexp: disable tests for OCaml < 4.03
This commit is contained in:
parent
942d312a69
commit
bab29617d1
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildDunePackage, alcotest, cstruct, sexplib }:
|
{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }:
|
||||||
|
|
||||||
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
||||||
then cstruct
|
then cstruct
|
||||||
@ -8,7 +8,7 @@ buildDunePackage rec {
|
|||||||
pname = "cstruct-sexp";
|
pname = "cstruct-sexp";
|
||||||
inherit (cstruct) version src meta;
|
inherit (cstruct) version src meta;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = lib.versionAtLeast ocaml.version "4.03";
|
||||||
checkInputs = lib.optional doCheck alcotest;
|
checkInputs = lib.optional doCheck alcotest;
|
||||||
|
|
||||||
propagatedBuildInputs = [ cstruct sexplib ];
|
propagatedBuildInputs = [ cstruct sexplib ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user