2020-10-25 18:54:25 +00:00
|
|
|
{ lib, buildDunePackage, cstruct, sexplib, ppxlib, stdlib-shims
|
|
|
|
, ounit, cppo, ppx_sexp_conv, cstruct-unix, cstruct-sexp
|
|
|
|
}:
|
2018-12-10 19:59:45 +00:00
|
|
|
|
2022-04-25 20:35:24 +00:00
|
|
|
if lib.versionOlder (cstruct.version or "1") "3"
|
2018-12-10 19:59:45 +00:00
|
|
|
then cstruct
|
|
|
|
else
|
2017-11-27 19:08:40 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage {
|
2021-01-21 00:24:35 +00:00
|
|
|
pname = "ppx_cstruct";
|
|
|
|
inherit (cstruct) version src useDune2 meta;
|
2017-11-27 19:08:40 +00:00
|
|
|
|
2021-09-29 12:28:09 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-10-25 18:54:25 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
|
|
|
|
|
2021-09-29 12:28:09 +00:00
|
|
|
doCheck = true;
|
2020-10-25 18:54:25 +00:00
|
|
|
checkInputs = [ ounit cppo ppx_sexp_conv cstruct-sexp cstruct-unix ];
|
2017-11-27 19:08:40 +00:00
|
|
|
}
|