summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix
blob: d0627480ea1c12e7de3ca08fb5aca78f916b8b6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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";
  };
}