mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ocamlPackages.cstruct-sexp: disable tests for OCaml < 4.03
This commit is contained in:
parent
942d312a69
commit
bab29617d1
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue