nixpkgs/pkgs/top-level/java-packages.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

90 lines
2.7 KiB
Nix
Raw Normal View History

{ pkgs }:
2016-10-30 16:44:56 +01:00
with pkgs;
let
openjfx11 = callPackage ../development/compilers/openjdk/openjfx/11 { };
openjfx17 = callPackage ../development/compilers/openjdk/openjfx/17 { };
openjfx21 = callPackage ../development/compilers/openjdk/openjfx/21 { };
openjfx22 = callPackage ../development/compilers/openjdk/openjfx/22 { };
2016-10-30 16:44:56 +01:00
in {
inherit openjfx11 openjfx17 openjfx21 openjfx22;
compiler = let
mkOpenjdk = path-linux: path-darwin: args:
if stdenv.isLinux
then mkOpenjdkLinuxOnly path-linux args
else let
openjdk = callPackage path-darwin {};
in openjdk // { headless = openjdk; };
mkOpenjdkLinuxOnly = path-linux: args: let
openjdk = callPackage path-linux (args);
in assert stdenv.isLinux; openjdk // {
headless = openjdk.override { headless = true; };
};
in rec {
corretto11 = callPackage ../development/compilers/corretto/11.nix { };
corretto17 = callPackage ../development/compilers/corretto/17.nix { };
2024-04-26 09:05:55 +02:00
corretto21 = callPackage ../development/compilers/corretto/21.nix { };
openjdk8-bootstrap = temurin-bin.jdk-8;
openjdk11-bootstrap = temurin-bin.jdk-11;
openjdk17-bootstrap = temurin-bin.jdk-17;
2022-03-23 02:57:01 +01:00
openjdk8 = mkOpenjdk
../development/compilers/openjdk/8.nix
2023-10-08 01:26:09 +02:00
../development/compilers/zulu/8.nix
{ };
openjdk11 = mkOpenjdk
../development/compilers/openjdk/11.nix
2023-10-08 01:26:09 +02:00
../development/compilers/zulu/11.nix
{ openjfx = openjfx11; };
openjdk17 = mkOpenjdk
../development/compilers/openjdk/17.nix
2023-10-08 01:26:09 +02:00
../development/compilers/zulu/17.nix
{
inherit openjdk17-bootstrap;
2022-01-14 15:44:08 +01:00
openjfx = openjfx17;
};
openjdk21 = mkOpenjdk
../development/compilers/openjdk/21.nix
2023-10-08 23:15:19 +02:00
../development/compilers/zulu/21.nix
{
2023-10-05 15:08:34 +02:00
openjdk21-bootstrap = temurin-bin.jdk-21;
openjfx = openjfx21;
};
2024-03-12 23:11:00 +01:00
openjdk22 = mkOpenjdk
../development/compilers/openjdk/22.nix
../development/compilers/zulu/22.nix
{
2024-04-29 19:48:02 +02:00
openjdk22-bootstrap = temurin-bin.jdk-22;
2024-03-12 23:11:00 +01:00
openjfx = openjfx22;
};
temurin-bin = recurseIntoAttrs (callPackage (
if stdenv.isLinux
then ../development/compilers/temurin-bin/jdk-linux.nix
else ../development/compilers/temurin-bin/jdk-darwin.nix
) {});
semeru-bin = recurseIntoAttrs (callPackage (
if stdenv.isLinux
then ../development/compilers/semeru-bin/jdk-linux.nix
else ../development/compilers/semeru-bin/jdk-darwin.nix
) {});
};
2016-10-30 16:44:56 +01:00
}
2024-02-06 16:05:49 +01:00
// lib.optionalAttrs config.allowAliases {
jogl_2_4_0 = throw "'jogl_2_4_0' is renamed to/replaced by 'jogl'";
2024-02-06 16:05:49 +01:00
mavenfod = throw "'mavenfod' is renamed to/replaced by 'maven.buildMavenPackage'";
}