2024-04-22 10:05:55 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
helpers,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
2024-05-05 19:39:35 +02:00
|
|
|
helpers.vim-plugin.mkVimPlugin config {
|
|
|
|
name = "godot";
|
|
|
|
originalName = "vim-godot";
|
|
|
|
defaultPackage = pkgs.vimPlugins.vim-godot;
|
|
|
|
globalPrefix = "godot_";
|
2024-04-22 10:05:55 +02:00
|
|
|
|
2024-05-05 19:39:35 +02:00
|
|
|
maintainers = [ maintainers.GaetanLepage ];
|
2024-04-22 10:05:55 +02:00
|
|
|
|
2024-05-05 19:39:35 +02:00
|
|
|
extraOptions = {
|
|
|
|
godotPackage = mkOption {
|
|
|
|
type = with types; nullOr package;
|
|
|
|
default = pkgs.godot_4;
|
|
|
|
description = ''
|
|
|
|
Which package to use for `godot`.
|
|
|
|
Set to `null` to prevent the installation.
|
2024-04-22 10:05:55 +02:00
|
|
|
'';
|
|
|
|
};
|
2024-05-05 19:39:35 +02:00
|
|
|
};
|
2024-04-22 10:05:55 +02:00
|
|
|
|
2024-05-05 19:39:35 +02:00
|
|
|
settingsOptions = {
|
|
|
|
executable = helpers.defaultNullOpts.mkStr "godot" ''
|
|
|
|
Path to the `godot` executable.
|
|
|
|
'';
|
|
|
|
};
|
2024-04-22 10:05:55 +02:00
|
|
|
|
2024-05-05 19:39:35 +02:00
|
|
|
settingsExample = {
|
|
|
|
executable = "godot";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = cfg: { extraPackages = [ cfg.godotPackage ]; };
|
|
|
|
}
|