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