6 mavenbuild = callPackage ../development/java-modules/build-maven-package.nix { };
7 fetchMaven = callPackage ../development/java-modules/m2install.nix { };
9 openjfx11 = callPackage ../development/compilers/openjdk/openjfx/11.nix { };
10 openjfx15 = callPackage ../development/compilers/openjdk/openjfx/15.nix { };
11 openjfx17 = callPackage ../development/compilers/openjdk/openjfx/17.nix { };
13 mavenfod = callPackage ../development/java-modules/maven-fod.nix { };
16 inherit mavenbuild mavenfod fetchMaven openjfx11 openjfx15 openjfx17;
21 inherit (gnome2) GConf gnome_vfs;
24 bootstrapArgs = gnomeArgs // {
25 openjfx = openjfx11; /* need this despite next line :-( */
30 mkAdoptopenjdk = path-linux: path-darwin: let
31 package-linux = import path-linux { inherit stdenv lib; };
32 package-darwin = import path-darwin { inherit lib; };
33 package = if stdenv.isLinux
37 inherit package-linux package-darwin;
39 jdk-hotspot = callPackage package.jdk-hotspot {};
40 jre-hotspot = callPackage package.jre-hotspot {};
41 jdk-openj9 = callPackage package.jdk-openj9 {};
42 jre-openj9 = callPackage package.jre-openj9 {};
45 mkBootstrap = adoptopenjdk: path: args:
46 /* adoptopenjdk not available for i686, so fall back to our old builds for bootstrapping */
47 if adoptopenjdk.jdk-hotspot.meta.available
49 # only linux has the gtkSupport option
51 then adoptopenjdk.jdk-hotspot.override { gtkSupport = false; }
52 else adoptopenjdk.jdk-hotspot
53 else callPackage path args;
55 mkOpenjdk = path-linux: path-darwin: args:
57 then mkOpenjdkLinuxOnly path-linux args
59 openjdk = callPackage path-darwin {};
60 in openjdk // { headless = openjdk; };
62 mkOpenjdkLinuxOnly = path-linux: args: let
63 openjdk = callPackage path-linux (gnomeArgs // args);
65 headless = openjdk.override { headless = true; };
68 openjdkDarwinMissing = version:
69 abort "OpenJDK ${builtins.toString version} is currently not supported on Darwin by nixpkgs.";
73 adoptopenjdk-8 = mkAdoptopenjdk
74 ../development/compilers/adoptopenjdk-bin/jdk8-linux.nix
75 ../development/compilers/adoptopenjdk-bin/jdk8-darwin.nix;
77 adoptopenjdk-11 = mkAdoptopenjdk
78 ../development/compilers/adoptopenjdk-bin/jdk11-linux.nix
79 ../development/compilers/adoptopenjdk-bin/jdk11-darwin.nix;
81 adoptopenjdk-13 = mkAdoptopenjdk
82 ../development/compilers/adoptopenjdk-bin/jdk13-linux.nix
83 ../development/compilers/adoptopenjdk-bin/jdk13-darwin.nix;
85 adoptopenjdk-14 = mkAdoptopenjdk
86 ../development/compilers/adoptopenjdk-bin/jdk14-linux.nix
87 ../development/compilers/adoptopenjdk-bin/jdk14-darwin.nix;
89 adoptopenjdk-15 = mkAdoptopenjdk
90 ../development/compilers/adoptopenjdk-bin/jdk15-linux.nix
91 ../development/compilers/adoptopenjdk-bin/jdk15-darwin.nix;
93 adoptopenjdk-16 = mkAdoptopenjdk
94 ../development/compilers/adoptopenjdk-bin/jdk16-linux.nix
95 ../development/compilers/adoptopenjdk-bin/jdk16-darwin.nix;
97 adoptopenjdk-17 = mkAdoptopenjdk
98 ../development/compilers/adoptopenjdk-bin/jdk17-linux.nix
99 ../development/compilers/adoptopenjdk-bin/jdk17-darwin.nix;
101 openjdk8-bootstrap = mkBootstrap adoptopenjdk-8
102 ../development/compilers/openjdk/bootstrap.nix
105 openjdk11-bootstrap = mkBootstrap adoptopenjdk-11
106 ../development/compilers/openjdk/bootstrap.nix
109 openjdk13-bootstrap = mkBootstrap adoptopenjdk-13
110 ../development/compilers/openjdk/12.nix
112 /* build segfaults with gcc9 or newer, so use gcc8 like Debian does */
116 openjdk14-bootstrap = mkBootstrap adoptopenjdk-14
117 ../development/compilers/openjdk/13.nix
119 inherit openjdk13-bootstrap;
122 openjdk15-bootstrap = mkBootstrap adoptopenjdk-15
123 ../development/compilers/openjdk/14.nix
125 inherit openjdk14-bootstrap;
128 openjdk16-bootstrap = mkBootstrap adoptopenjdk-16
129 ../development/compilers/openjdk/15.nix
131 inherit openjdk15-bootstrap;
134 openjdk17-bootstrap = mkBootstrap adoptopenjdk-17
135 ../development/compilers/openjdk/16.nix
137 inherit openjdk16-bootstrap;
140 openjdk18-bootstrap = mkBootstrap adoptopenjdk-17
141 ../development/compilers/openjdk/17.nix
143 inherit openjdk17-bootstrap;
147 ../development/compilers/openjdk/8.nix
148 ../development/compilers/openjdk/darwin/8.nix
151 openjdk11 = mkOpenjdk
152 ../development/compilers/openjdk/11.nix
153 ../development/compilers/openjdk/darwin/11.nix
154 { openjfx = openjfx11; };
156 openjdk12 = mkOpenjdkLinuxOnly ../development/compilers/openjdk/12.nix {
157 /* build segfaults with gcc9 or newer, so use gcc8 like Debian does */
162 openjdk13 = mkOpenjdkLinuxOnly ../development/compilers/openjdk/13.nix {
163 inherit openjdk13-bootstrap;
167 openjdk14 = mkOpenjdkLinuxOnly ../development/compilers/openjdk/14.nix {
168 inherit openjdk14-bootstrap;
172 openjdk15 = mkOpenjdkLinuxOnly ../development/compilers/openjdk/15.nix {
173 inherit openjdk15-bootstrap;
177 openjdk16 = mkOpenjdk
178 ../development/compilers/openjdk/16.nix
179 ../development/compilers/openjdk/darwin/16.nix
181 inherit openjdk16-bootstrap;
185 openjdk17 = mkOpenjdk
186 ../development/compilers/openjdk/17.nix
187 ../development/compilers/openjdk/darwin/17.nix
189 inherit openjdk17-bootstrap;
193 openjdk18 = mkOpenjdk
194 ../development/compilers/openjdk/18.nix
195 ../development/compilers/openjdk/darwin/18.nix
197 inherit openjdk18-bootstrap;
201 temurin-bin = recurseIntoAttrs (callPackage (
203 then ../development/compilers/temurin-bin/jdk-linux.nix
204 else ../development/compilers/temurin-bin/jdk-darwin.nix
207 semeru-bin = recurseIntoAttrs (callPackage (
209 then ../development/compilers/semeru-bin/jdk-linux.nix
210 else ../development/compilers/semeru-bin/jdk-darwin.nix
214 mavenPlugins = recurseIntoAttrs (callPackage ../development/java-modules/mavenPlugins.nix { });
216 inherit (callPackage ../development/java-modules/eclipse/aether-util.nix { inherit fetchMaven; })
219 inherit (callPackage ../development/java-modules/apache/ant.nix { inherit fetchMaven; })
222 inherit (callPackage ../development/java-modules/apache/ant-launcher.nix { inherit fetchMaven; })
225 inherit (callPackage ../development/java-modules/beanshell/bsh.nix { inherit fetchMaven; })
228 inherit (callPackage ../development/java-modules/classworlds/classworlds.nix { inherit fetchMaven; })
229 classworlds_1_1_alpha2
232 inherit (callPackage ../development/java-modules/apache/commons-cli.nix { inherit fetchMaven; })
236 inherit (callPackage ../development/java-modules/apache/commons-io.nix { inherit fetchMaven; })
239 inherit (callPackage ../development/java-modules/apache/commons-lang.nix { inherit fetchMaven; })
244 inherit (callPackage ../development/java-modules/apache/commons-lang3.nix { inherit fetchMaven; })
247 inherit (callPackage ../development/java-modules/apache/commons-logging-api.nix { inherit fetchMaven; })
248 commonsLoggingApi_1_1;
250 inherit (callPackage ../development/java-modules/findbugs/jsr305.nix { inherit fetchMaven; })
251 findbugsJsr305_2_0_1;
253 inherit (callPackage ../development/java-modules/google/collections.nix { inherit fetchMaven; })
254 googleCollections_1_0;
256 inherit (callPackage ../development/java-modules/hamcrest/all.nix { inherit fetchMaven; })
259 inherit (callPackage ../development/java-modules/hamcrest/core.nix { inherit fetchMaven; })
262 inherit (callPackage ../development/java-modules/junit { inherit mavenbuild fetchMaven; })
267 inherit (callPackage ../development/java-modules/jogl { })
270 inherit (callPackage ../development/java-modules/log4j { inherit fetchMaven; })
273 inherit (callPackage ../development/java-modules/maven/archiver.nix { inherit fetchMaven; })
276 inherit (callPackage ../development/java-modules/maven/artifact.nix { inherit fetchMaven; })
284 inherit (callPackage ../development/java-modules/maven/artifact-manager.nix { inherit fetchMaven; })
285 mavenArtifactManager_2_0_1
286 mavenArtifactManager_2_0_6
287 mavenArtifactManager_2_0_9
288 mavenArtifactManager_2_2_1;
290 inherit (callPackage ../development/java-modules/maven/common-artifact-filters.nix { inherit fetchMaven; })
291 mavenCommonArtifactFilters_1_2
292 mavenCommonArtifactFilters_1_3
293 mavenCommonArtifactFilters_1_4;
295 inherit (callPackage ../development/java-modules/maven/compiler-plugin.nix { inherit fetchMaven; })
298 inherit (callPackage ../development/java-modules/maven/core.nix { inherit fetchMaven; })
304 inherit (callPackage ../development/java-modules/maven/dependency-tree.nix { inherit fetchMaven; })
305 mavenDependencyTree_2_1;
307 inherit (callPackage ../development/java-modules/maven/doxia-sink-api.nix { inherit fetchMaven; })
308 mavenDoxiaSinkApi_1_0_alpha6
309 mavenDoxiaSinkApi_1_0_alpha7
310 mavenDoxiaSinkApi_1_0_alpha10;
312 inherit (callPackage ../development/java-modules/maven/enforcer.nix { inherit fetchMaven; })
313 mavenEnforcerApi_1_3_1
314 mavenEnforcerRules_1_3_1;
316 inherit (callPackage ../development/java-modules/maven/error-diagnostics.nix { inherit fetchMaven; })
317 mavenErrorDiagnostics_2_0_1
318 mavenErrorDiagnostics_2_0_6
319 mavenErrorDiagnostics_2_0_9
320 mavenErrorDiagnostics_2_2_1;
322 inherit (callPackage ../development/java-modules/maven/filtering.nix { inherit fetchMaven; })
325 inherit (callPackage ../development/java-modules/maven-hello { inherit mavenbuild; })
329 inherit (callPackage ../development/java-modules/maven/model.nix { inherit fetchMaven; })
336 inherit (callPackage ../development/java-modules/maven/monitor.nix { inherit fetchMaven; })
342 inherit (callPackage ../development/java-modules/maven/plugin-annotations.nix { inherit fetchMaven; })
343 mavenPluginAnnotations_3_1
344 mavenPluginAnnotations_3_2;
346 inherit (callPackage ../development/java-modules/maven/plugin-api.nix { inherit fetchMaven; })
351 mavenPluginApi_3_0_3;
353 inherit (callPackage ../development/java-modules/maven/plugin-descriptor.nix { inherit fetchMaven; })
354 mavenPluginDescriptor_2_0_1
355 mavenPluginDescriptor_2_0_6
356 mavenPluginDescriptor_2_0_9
357 mavenPluginDescriptor_2_2_1;
359 inherit (callPackage ../development/java-modules/maven/plugin-parameter-documenter.nix { inherit fetchMaven; })
360 mavenPluginParameterDocumenter_2_0_1
361 mavenPluginParameterDocumenter_2_0_6
362 mavenPluginParameterDocumenter_2_0_9
363 mavenPluginParameterDocumenter_2_2_1;
365 inherit (callPackage ../development/java-modules/maven/plugin-registry.nix { inherit fetchMaven; })
366 mavenPluginRegistry_2_0_1
367 mavenPluginRegistry_2_0_6
368 mavenPluginRegistry_2_0_9
369 mavenPluginRegistry_2_2_1;
371 inherit (callPackage ../development/java-modules/maven/plugin-testing-harness.nix { inherit fetchMaven; })
372 mavenPluginTestingHarness_1_1;
374 inherit (callPackage ../development/java-modules/maven/profile.nix { inherit fetchMaven; })
380 inherit (callPackage ../development/java-modules/maven/project.nix { inherit fetchMaven; })
387 inherit (callPackage ../development/java-modules/maven/reporting-api.nix { inherit fetchMaven; })
388 mavenReportingApi_2_0_1
389 mavenReportingApi_2_0_6
390 mavenReportingApi_2_0_9
391 mavenReportingApi_2_2_1;
393 inherit (callPackage ../development/java-modules/maven/repository-metadata.nix { inherit fetchMaven; })
394 mavenRepositoryMetadata_2_0_1
395 mavenRepositoryMetadata_2_0_6
396 mavenRepositoryMetadata_2_0_9
397 mavenRepositoryMetadata_2_2_1;
399 inherit (callPackage ../development/java-modules/maven/settings.nix { inherit fetchMaven; })
405 inherit (callPackage ../development/java-modules/maven/shared-incremental.nix { inherit fetchMaven; })
406 mavenSharedIncremental_1_1;
408 inherit (callPackage ../development/java-modules/maven/shared-utils.nix { inherit fetchMaven; })
409 mavenSharedUtils_0_1;
411 inherit (callPackage ../development/java-modules/maven/surefire-api.nix { inherit fetchMaven; })
412 mavenSurefireApi_2_12_4
413 mavenSurefireApi_2_17;
415 inherit (callPackage ../development/java-modules/maven/surefire-booter.nix { inherit fetchMaven; })
416 mavenSurefireBooter_2_12_4
417 mavenSurefireBooter_2_17;
419 inherit (callPackage ../development/java-modules/maven/surefire-common.nix { inherit fetchMaven; })
420 mavenSurefireCommon_2_12_4
421 mavenSurefireCommon_2_17;
423 inherit (callPackage ../development/java-modules/maven/surefire-junit4.nix { inherit fetchMaven; })
424 mavenSurefireJunit4_2_12_4;
426 inherit (callPackage ../development/java-modules/maven/toolchain.nix { inherit fetchMaven; })
429 mavenToolchain_2_2_1;
431 inherit (callPackage ../development/java-modules/mojo/animal-sniffer.nix { inherit fetchMaven; })
432 mojoAnimalSniffer_1_11;
434 inherit (callPackage ../development/java-modules/mojo/java-boot-classpath-detector.nix { inherit fetchMaven; })
435 mojoJavaBootClasspathDetector_1_11;
437 inherit (callPackage ../development/java-modules/ow2/asm-all.nix { inherit fetchMaven; })
440 inherit (callPackage ../development/java-modules/plexus/archiver.nix { inherit fetchMaven; })
441 plexusArchiver_1_0_alpha7
444 inherit (callPackage ../development/java-modules/plexus/build-api.nix { inherit fetchMaven; })
445 plexusBuildApi_0_0_4;
447 inherit (callPackage ../development/java-modules/plexus/classworlds.nix { inherit fetchMaven; })
448 plexusClassworlds_2_2_2
449 plexusClassworlds_2_4;
451 inherit (callPackage ../development/java-modules/plexus/compiler-api.nix { inherit fetchMaven; })
452 plexusCompilerApi_2_2
453 plexusCompilerApi_2_4;
455 inherit (callPackage ../development/java-modules/plexus/compiler-javac.nix { inherit fetchMaven; })
456 plexusCompilerJavac_2_2
457 plexusCompilerJavac_2_4;
459 inherit (callPackage ../development/java-modules/plexus/compiler-manager.nix { inherit fetchMaven; })
460 plexusCompilerManager_2_2
461 plexusCompilerManager_2_4;
463 inherit (callPackage ../development/java-modules/plexus/component-annotations.nix { inherit fetchMaven; })
464 plexusComponentAnnotations_1_5_5;
466 inherit (callPackage ../development/java-modules/plexus/container-default.nix { inherit fetchMaven; })
467 plexusContainerDefault_1_0_alpha9
468 plexusContainerDefault_1_0_alpha9_stable1
469 plexusContainerDefault_1_5_5;
471 inherit (callPackage ../development/java-modules/plexus/digest.nix { inherit fetchMaven; })
474 inherit (callPackage ../development/java-modules/plexus/i18n.nix { inherit fetchMaven; })
475 plexusI18n_1_0_beta6;
477 inherit (callPackage ../development/java-modules/plexus/interactivity-api.nix { inherit fetchMaven; })
478 plexusInteractivityApi_1_0_alpha4;
480 inherit (callPackage ../development/java-modules/plexus/interpolation.nix { inherit fetchMaven; })
481 plexusInterpolation_1_11
482 plexusInterpolation_1_12
483 plexusInterpolation_1_13
484 plexusInterpolation_1_15;
486 inherit (callPackage ../development/java-modules/plexus/io.nix { inherit fetchMaven; })
489 inherit (callPackage ../development/java-modules/plexus/utils.nix { inherit fetchMaven; })
507 inherit (callPackage ../development/java-modules/sisu/guice.nix { inherit fetchMaven; })
510 inherit (callPackage ../development/java-modules/sisu/inject-bean.nix { inherit fetchMaven; })
511 sisuInjectBean_2_1_1;
513 inherit (callPackage ../development/java-modules/sisu/inject-plexus.nix { inherit fetchMaven; })
514 sisuInjectPlexus_2_1_1;
516 inherit (callPackage ../development/java-modules/apache/xbean-reflect.nix { inherit fetchMaven; })
519 inherit (callPackage ../development/java-modules/xerces/impl.nix { inherit fetchMaven; })
522 inherit (callPackage ../development/java-modules/xml-apis { inherit fetchMaven; })