nixpkgs/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix
Vincent Laporte ac02f26980 ocamlPackages.cppo: 1.6.{5,6} → 1.6.7
ocamlPackages.cppo_ocamlbuild: init at 1.6.7
2020-12-30 15:04:11 +01:00

18 lines
336 B
Nix

{ lib, buildDunePackage, cppo, ocamlbuild }:
if !lib.versionAtLeast (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";
};
}