2024-04-22 10:05:55 +02:00
|
|
|
{
|
2025-04-20 22:22:32 +02:00
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
enable =
|
|
|
|
# TODO: 2025-04-20: build failure of godot_4
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/399818
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/400347
|
|
|
|
false
|
2024-04-22 10:05:55 +02:00
|
|
|
# Godot is only available on Linux
|
2025-04-20 22:22:32 +02:00
|
|
|
&& lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.godot_4;
|
|
|
|
in
|
|
|
|
lib.optionalAttrs enable {
|
|
|
|
empty = {
|
|
|
|
plugins.godot.enable = true;
|
2024-04-22 10:05:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
plugins.godot = {
|
2025-04-20 22:22:32 +02:00
|
|
|
enable = true;
|
2024-04-22 10:05:55 +02:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
executable = "godot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|