summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix
blob: 3f1f436b076cbf044ce4dc26c4ed98ab680f85f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, buildDunePackage, cppo, ocamlbuild }:

if lib.versionOlder (lib.getVersion cppo) "1.6"
then cppo
else

buildDunePackage {
  pname = "cppo_ocamlbuild";

  inherit (cppo) version src;

  minimalOCamlVersion = "4.03";
  duneVersion = "3";

  propagatedBuildInputs = [ ocamlbuild ];

  meta = cppo.meta // {
    description = "Plugin to use cppo with ocamlbuild";
  };
}