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
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
if lib.versionOlder (cstruct.version or "1") "3"
|
2020-04-24 23:36:52 +00:00
|
|
|
then cstruct
|
|
|
|
else
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "ppx_cstruct";
|
|
|
|
inherit (cstruct) version src meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [ cppo ];
|
|
|
|
checkInputs = [ ounit ppx_sexp_conv cstruct-sexp cstruct-unix ];
|
|
|
|
}
|