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