2021-01-05 17:05:55 +00:00
|
|
|
{ lib, buildDunePackage, cppo, ocamlbuild }:
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
if lib.versionOlder (lib.getVersion cppo) "1.6"
|
2021-01-05 17:05:55 +00:00
|
|
|
then cppo
|
|
|
|
else
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildDunePackage {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "cppo_ocamlbuild";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
inherit (cppo) version src;
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
duneVersion = "3";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ocamlbuild ];
|
|
|
|
|
|
|
|
meta = cppo.meta // {
|
|
|
|
description = "Plugin to use cppo with ocamlbuild";
|
|
|
|
};
|
|
|
|
}
|