git.iko.soy/typeable/nixpkgs
on master help sign in
Atlassian apps: remove misleading JRE switch logic

Only the Oracle JRE is supported by Atlassian appsAtlassian apps (see https://jira.atlassian.com/browse/JRASERVER-46152) Plus Atlassian apps are non free so the switch logic always chose Oracle JRE anyway. Option is kept in case someone want to patch apps to support openjdk.

commit4f3d971ef55b82ef349e5fb198196d2028fc0cf5 authorJean-Baptiste Giraudeau <jb@giraudeau.info> dateWed 8 Nov 2017, 20:26 (9 years ago) parent3c06d9f
3 files changed+9−21
nixos/modules/services/web-apps/atlassian/confluence.nix+3−7 nixos/modules/services/web-apps/atlassian/crowd.nix+3−7 nixos/modules/services/web-apps/atlassian/jira.nix+3−7
nixos/modules/services/web-apps/atlassian/confluence.nix+3−7
@@ -127,14 +127,10 @@ in
127127
128128
129129
130− jrePackage = let
131− jreSwitch = unfree: free: if config.nixpkgs.config.allowUnfree or false then unfree else free;
132− in mkOption {
130+ jrePackage = mkOption {
133131 type = types.package;
134− default = jreSwitch pkgs.oraclejre8 pkgs.openjdk8.jre;
135− defaultText = jreSwitch "pkgs.oraclejre8" "pkgs.openjdk8.jre";
136− example = literalExample "pkgs.openjdk8.jre";
137− description = "Java Runtime to use for Confluence. Note that Atlassian recommends the Oracle JRE.";
132+ default = pkgs.oraclejre8;
133+ description = "Note that Atlassian only support the Oracle JRE (JRASERVER-46152).";
138134 };
139135 };
140136 };
nixos/modules/services/web-apps/atlassian/crowd.nix+3−7
@@ -93,14 +93,10 @@ in
9393 };
9494 };
9595
96− jrePackage = let
97− jreSwitch = unfree: free: if config.nixpkgs.config.allowUnfree or false then unfree else free;
98− in mkOption {
96+ jrePackage = mkOption {
9997 type = types.package;
100− default = jreSwitch pkgs.oraclejre8 pkgs.openjdk8.jre;
101− defaultText = jreSwitch "pkgs.oraclejre8" "pkgs.openjdk8.jre";
102− example = literalExample "pkgs.openjdk8.jre";
103− description = "Java Runtime to use for Crowd. Note that Atlassian recommends the Oracle JRE.";
98+ default = pkgs.oraclejre8;
99+ description = "Note that Atlassian only support the Oracle JRE (JRASERVER-46152).";
104100 };
105101 };
106102 };
nixos/modules/services/web-apps/atlassian/jira.nix+3−7
@@ -131,14 +131,10 @@ in
131131 };
132132 };
133133
134− jrePackage = let
135− jreSwitch = unfree: free: if config.nixpkgs.config.allowUnfree or false then unfree else free;
136− in mkOption {
134+ jrePackage = mkOption {
137135 type = types.package;
138− default = jreSwitch pkgs.oraclejre8 pkgs.openjdk8.jre;
139− defaultText = jreSwitch "pkgs.oraclejre8" "pkgs.openjdk8.jre";
140− example = literalExample "pkgs.openjdk8.jre";
141− description = "Java Runtime to use for JIRA. Note that Atlassian recommends the Oracle JRE.";
136+ default = pkgs.oraclejre8;
137+ description = "Note that Atlassian only support the Oracle JRE (JRASERVER-46152).";
142138 };
143139 };
144140 };