mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 22:50:39 +00:00
eclipse: add option enableLombok
This commit is contained in:
parent
b2ed0a902b
commit
d7715f71ad
1 changed files with 14 additions and 1 deletions
|
@ -15,6 +15,16 @@ in
|
||||||
programs.eclipse = {
|
programs.eclipse = {
|
||||||
enable = mkEnableOption "Eclipse";
|
enable = mkEnableOption "Eclipse";
|
||||||
|
|
||||||
|
enableLombok = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = ''
|
||||||
|
Whether to enable the Lombok Java Agent in Eclipse. This is
|
||||||
|
necessary to use the Lombok class annotations.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
jvmArgs = mkOption {
|
jvmArgs = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
|
@ -33,7 +43,10 @@ in
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.eclipses.eclipseWithPlugins {
|
(pkgs.eclipses.eclipseWithPlugins {
|
||||||
eclipse = pkgs.eclipses.eclipse-platform;
|
eclipse = pkgs.eclipses.eclipse-platform;
|
||||||
jvmArgs = cfg.jvmArgs;
|
jvmArgs =
|
||||||
|
cfg.jvmArgs
|
||||||
|
++ optional cfg.enableLombok
|
||||||
|
"-javaagent:${pkgs.lombok}/share/java/lombok.jar";
|
||||||
plugins = cfg.plugins;
|
plugins = cfg.plugins;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue