python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / top-level / java-packages.nix
blob8a419a6a0960e5186e06559e653ba8ec156ff53d
1 { pkgs }:
3 with pkgs;
5 let
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 { };
15 in {
16   inherit mavenbuild mavenfod fetchMaven openjfx11 openjfx15 openjfx17;
18   compiler = let
20     gnomeArgs = {
21       inherit (gnome2) GConf gnome_vfs;
22     };
24     bootstrapArgs = gnomeArgs // {
25       openjfx = openjfx11; /* need this despite next line :-( */
26       enableJavaFX = false;
27       headless = true;
28     };
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
34         then package-linux
35         else package-darwin;
36     in rec {
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  {};
43     };
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
48       then
49         # only linux has the gtkSupport option
50         if stdenv.isLinux
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:
56       if stdenv.isLinux
57       then mkOpenjdkLinuxOnly path-linux args
58       else let
59         openjdk = callPackage path-darwin {};
60       in openjdk // { headless = openjdk; };
62     mkOpenjdkLinuxOnly = path-linux: args: let
63       openjdk = callPackage path-linux  (gnomeArgs // args);
64     in openjdk // {
65       headless = openjdk.override { headless = true; };
66     };
68     openjdkDarwinMissing = version:
69       abort "OpenJDK ${builtins.toString version} is currently not supported on Darwin by nixpkgs.";
71   in rec {
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
103       { version = "8"; };
105     openjdk11-bootstrap = mkBootstrap adoptopenjdk-11
106       ../development/compilers/openjdk/bootstrap.nix
107       { version = "10"; };
109     openjdk13-bootstrap = mkBootstrap adoptopenjdk-13
110       ../development/compilers/openjdk/12.nix
111       (bootstrapArgs // {
112         /* build segfaults with gcc9 or newer, so use gcc8 like Debian does */
113         stdenv = gcc8Stdenv;
114       });
116     openjdk14-bootstrap = mkBootstrap adoptopenjdk-14
117       ../development/compilers/openjdk/13.nix
118       (bootstrapArgs // {
119         inherit openjdk13-bootstrap;
120       });
122     openjdk15-bootstrap = mkBootstrap adoptopenjdk-15
123       ../development/compilers/openjdk/14.nix
124       (bootstrapArgs // {
125         inherit openjdk14-bootstrap;
126       });
128     openjdk16-bootstrap = mkBootstrap adoptopenjdk-16
129       ../development/compilers/openjdk/15.nix
130       (bootstrapArgs // {
131         inherit openjdk15-bootstrap;
132       });
134     openjdk17-bootstrap = mkBootstrap adoptopenjdk-17
135       ../development/compilers/openjdk/16.nix
136       (bootstrapArgs // {
137         inherit openjdk16-bootstrap;
138       });
140     openjdk18-bootstrap = mkBootstrap adoptopenjdk-17
141       ../development/compilers/openjdk/17.nix
142       (bootstrapArgs // {
143         inherit openjdk17-bootstrap;
144       });
146     openjdk8 = mkOpenjdk
147       ../development/compilers/openjdk/8.nix
148       ../development/compilers/openjdk/darwin/8.nix
149       { };
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 */
158         stdenv = gcc8Stdenv;
159         openjfx = openjfx11;
160     };
162     openjdk13 = mkOpenjdkLinuxOnly ../development/compilers/openjdk/13.nix {
163       inherit openjdk13-bootstrap;
164       openjfx = openjfx11;
165     };
167     openjdk14 = mkOpenjdkLinuxOnly ../development/compilers/openjdk/14.nix {
168       inherit openjdk14-bootstrap;
169       openjfx = openjfx11;
170     };
172     openjdk15 = mkOpenjdkLinuxOnly ../development/compilers/openjdk/15.nix {
173       inherit openjdk15-bootstrap;
174       openjfx = openjfx15;
175     };
177     openjdk16 = mkOpenjdk
178       ../development/compilers/openjdk/16.nix
179       ../development/compilers/openjdk/darwin/16.nix
180       {
181         inherit openjdk16-bootstrap;
182         openjfx = openjfx15;
183       };
185     openjdk17 = mkOpenjdk
186       ../development/compilers/openjdk/17.nix
187       ../development/compilers/openjdk/darwin/17.nix
188       {
189         inherit openjdk17-bootstrap;
190         openjfx = openjfx17;
191       };
193     openjdk18 = mkOpenjdk
194       ../development/compilers/openjdk/18.nix
195       ../development/compilers/openjdk/darwin/18.nix
196       {
197         inherit openjdk18-bootstrap;
198         openjfx = openjfx17;
199       };
201     temurin-bin = recurseIntoAttrs (callPackage (
202       if stdenv.isLinux
203       then ../development/compilers/temurin-bin/jdk-linux.nix
204       else ../development/compilers/temurin-bin/jdk-darwin.nix
205     ) {});
207     semeru-bin = recurseIntoAttrs (callPackage (
208       if stdenv.isLinux
209       then ../development/compilers/semeru-bin/jdk-linux.nix
210       else ../development/compilers/semeru-bin/jdk-darwin.nix
211     ) {});
212   };
214   mavenPlugins = recurseIntoAttrs (callPackage ../development/java-modules/mavenPlugins.nix { });
216   inherit (callPackage ../development/java-modules/eclipse/aether-util.nix { inherit fetchMaven; })
217     aetherUtil_0_9_0_M2;
219   inherit (callPackage ../development/java-modules/apache/ant.nix { inherit fetchMaven; })
220     ant_1_8_2;
222   inherit (callPackage ../development/java-modules/apache/ant-launcher.nix { inherit fetchMaven; })
223     antLauncher_1_8_2;
225   inherit (callPackage ../development/java-modules/beanshell/bsh.nix { inherit fetchMaven; })
226     bsh_2_0_b4;
228   inherit (callPackage ../development/java-modules/classworlds/classworlds.nix { inherit fetchMaven; })
229     classworlds_1_1_alpha2
230     classworlds_1_1;
232   inherit (callPackage ../development/java-modules/apache/commons-cli.nix { inherit fetchMaven; })
233     commonsCli_1_0
234     commonsCli_1_2;
236   inherit (callPackage ../development/java-modules/apache/commons-io.nix { inherit fetchMaven; })
237     commonsIo_2_1;
239   inherit (callPackage ../development/java-modules/apache/commons-lang.nix { inherit fetchMaven; })
240     commonsLang_2_1
241     commonsLang_2_3
242     commonsLang_2_6;
244   inherit (callPackage ../development/java-modules/apache/commons-lang3.nix { inherit fetchMaven; })
245     commonsLang3_3_1;
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; })
257     hamcrestAll_1_3;
259   inherit (callPackage ../development/java-modules/hamcrest/core.nix { inherit fetchMaven; })
260     hamcrestCore_1_3;
262   inherit (callPackage ../development/java-modules/junit { inherit mavenbuild fetchMaven; })
263     junit_3_8_1
264     junit_3_8_2
265     junit_4_12;
267   inherit (callPackage ../development/java-modules/jogl { })
268     jogl_2_3_2;
270   inherit (callPackage ../development/java-modules/log4j { inherit fetchMaven; })
271     log4j_1_2_12;
273   inherit (callPackage ../development/java-modules/maven/archiver.nix { inherit fetchMaven; })
274     mavenArchiver_2_5;
276   inherit (callPackage ../development/java-modules/maven/artifact.nix { inherit fetchMaven; })
277     mavenArtifact_2_0_1
278     mavenArtifact_2_0_6
279     mavenArtifact_2_0_8
280     mavenArtifact_2_0_9
281     mavenArtifact_2_2_1
282     mavenArtifact_3_0_3;
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; })
296     mavenCompiler_3_2;
298   inherit (callPackage ../development/java-modules/maven/core.nix { inherit fetchMaven; })
299     mavenCore_2_0_1
300     mavenCore_2_0_6
301     mavenCore_2_0_9
302     mavenCore_2_2_1;
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; })
323     mavenFiltering_1_1;
325   inherit (callPackage ../development/java-modules/maven-hello { inherit mavenbuild; })
326     mavenHello_1_0
327     mavenHello_1_1;
329   inherit (callPackage ../development/java-modules/maven/model.nix { inherit fetchMaven; })
330     mavenModel_2_0_1
331     mavenModel_2_0_6
332     mavenModel_2_0_9
333     mavenModel_2_2_1
334     mavenModel_3_0_3;
336   inherit (callPackage ../development/java-modules/maven/monitor.nix { inherit fetchMaven; })
337     mavenMonitor_2_0_1
338     mavenMonitor_2_0_6
339     mavenMonitor_2_0_9
340     mavenMonitor_2_2_1;
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; })
347     mavenPluginApi_2_0_1
348     mavenPluginApi_2_0_6
349     mavenPluginApi_2_0_9
350     mavenPluginApi_2_2_1
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; })
375     mavenProfile_2_0_1
376     mavenProfile_2_0_6
377     mavenProfile_2_0_9
378     mavenProfile_2_2_1;
380   inherit (callPackage ../development/java-modules/maven/project.nix { inherit fetchMaven; })
381     mavenProject_2_0_1
382     mavenProject_2_0_6
383     mavenProject_2_0_8
384     mavenProject_2_0_9
385     mavenProject_2_2_1;
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; })
400     mavenSettings_2_0_1
401     mavenSettings_2_0_6
402     mavenSettings_2_0_9
403     mavenSettings_2_2_1;
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; })
427     mavenToolchain_1_0
428     mavenToolchain_2_0_9
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; })
438     ow2AsmAll_4_0;
440   inherit (callPackage ../development/java-modules/plexus/archiver.nix { inherit fetchMaven; })
441     plexusArchiver_1_0_alpha7
442     plexusArchiver_2_1;
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; })
472     plexusDigest_1_0;
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; })
487     plexusIo_2_0_2;
489   inherit (callPackage ../development/java-modules/plexus/utils.nix { inherit fetchMaven; })
490     plexusUtils_1_0_4
491     plexusUtils_1_0_5
492     plexusUtils_1_1
493     plexusUtils_1_4_1
494     plexusUtils_1_4_5
495     plexusUtils_1_4_9
496     plexusUtils_1_5_1
497     plexusUtils_1_5_5
498     plexusUtils_1_5_6
499     plexusUtils_1_5_8
500     plexusUtils_1_5_15
501     plexusUtils_2_0_5
502     plexusUtils_2_0_6
503     plexusUtils_3_0
504     plexusUtils_3_0_5
505     plexusUtils_3_0_8;
507   inherit (callPackage ../development/java-modules/sisu/guice.nix { inherit fetchMaven; })
508     sisuGuice_2_9_4;
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; })
517     xbeanReflect_3_4;
519   inherit (callPackage ../development/java-modules/xerces/impl.nix { inherit fetchMaven; })
520     xercesImpl_2_8_0;
522   inherit (callPackage ../development/java-modules/xml-apis { inherit fetchMaven; })
523     xmlApis_1_3_03;