nixpkgs/pkgs/development/tools/ocaml/cppo/ocamlbuild.nix
Anders Kaseorg 6920d8ca42 treewide: Simplify negated uses of versionAtLeast, versionOlder
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-04-25 13:35:24 -07:00

18 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";
};
}