22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
17 lines
333 B
Nix
17 lines
333 B
Nix
{ lib, buildDunePackage, cppo, ocamlbuild }:
|
|
|
|
if lib.versionOlder (lib.getVersion cppo) "1.6"
|
|
then cppo
|
|
else
|
|
|
|
buildDunePackage rec {
|
|
pname = "cppo_ocamlbuild";
|
|
|
|
inherit (cppo) version useDune2 src;
|
|
|
|
propagatedBuildInputs = [ ocamlbuild ];
|
|
|
|
meta = cppo.meta // {
|
|
description = "Plugin to use cppo with ocamlbuild";
|
|
};
|
|
}
|