2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildDunePackage, cstruct, sexplib, ppxlib, stdlib-shims
|
|
|
|
, ounit, cppo, ppx_sexp_conv, cstruct-unix, cstruct-sexp
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
|
|
|
then cstruct
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "ppx_cstruct";
|
|
|
|
inherit (cstruct) version src useDune2 meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
|
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
doCheck = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
checkInputs = [ ounit cppo ppx_sexp_conv cstruct-sexp cstruct-unix ];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|