modules/dependencies: add godot

This commit is contained in:
Gaetan Lepage 2025-04-07 23:43:23 +02:00 committed by nix-infra-bot
parent 06acf3f103
commit e7c9cc7133
2 changed files with 11 additions and 8 deletions

View file

@ -28,6 +28,7 @@ let
};
glow.default = "glow";
go.default = "go";
godot.default = "godot_4";
lazygit.default = "lazygit";
lean.default = "lean4";
ledger.default = "ledger";

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
@ -13,12 +12,13 @@ lib.nixvim.plugins.mkVimPlugin {
maintainers = [ maintainers.GaetanLepage ];
extraOptions = {
godotPackage = lib.mkPackageOption pkgs "godot" {
nullable = true;
default = "godot_4";
};
};
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "godot";
packageName = "godot";
})
];
settingsOptions = {
executable = helpers.defaultNullOpts.mkStr "godot" ''
@ -30,5 +30,7 @@ lib.nixvim.plugins.mkVimPlugin {
executable = "godot";
};
extraConfig = cfg: { extraPackages = [ cfg.godotPackage ]; };
extraConfig = {
dependencies.godot.enable = lib.mkDefault true;
};
}