2019-08-24 00:02:26 -07:00
|
|
|
{ lib, buildDunePackage, cstruct, sexplib, ppx_tools_versioned }:
|
2018-12-10 11:59:45 -08:00
|
|
|
|
|
|
|
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
|
|
|
then cstruct
|
|
|
|
else
|
2017-11-27 11:08:40 -08:00
|
|
|
|
2018-11-05 02:21:46 -08:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "ppx_cstruct";
|
2018-11-11 09:04:27 -08:00
|
|
|
inherit (cstruct) version src meta;
|
2017-11-27 11:08:40 -08:00
|
|
|
|
2019-08-24 00:02:26 -07:00
|
|
|
minimumOCamlVersion = "4.03";
|
2017-11-27 11:08:40 -08:00
|
|
|
|
2019-08-24 00:02:26 -07:00
|
|
|
buildInputs = [ sexplib ppx_tools_versioned ];
|
2017-11-27 11:08:40 -08:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
|
|
|
}
|