2018-07-21 02:44:44 +02:00
|
|
|
{ pkgs }:
|
2016-10-30 16:44:56 +01:00
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
let
|
2024-06-30 08:06:26 +02:00
|
|
|
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 { };
|
2021-10-28 20:46:09 +02:00
|
|
|
|
2016-10-30 16:44:56 +01:00
|
|
|
in {
|
2024-08-01 12:48:50 +02:00
|
|
|
inherit openjfx11 openjfx17 openjfx21 openjfx22;
|
2021-10-28 20:46:09 +02:00
|
|
|
|
|
|
|
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
|
2024-06-26 10:25:21 +02:00
|
|
|
openjdk = callPackage path-linux (args);
|
2024-02-08 23:09:43 +01:00
|
|
|
in assert stdenv.isLinux; openjdk // {
|
2021-10-28 20:46:09 +02:00
|
|
|
headless = openjdk.override { headless = true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
in rec {
|
2023-10-20 09:23:40 +02:00
|
|
|
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 { };
|
2023-10-20 09:23:40 +02:00
|
|
|
|
openjdk: remove adoptopenjdk-bin, openjdk 12/13/14/15/16
AdoptOpenJDK is a long-deprecated project, having been superceded by
Eclipse Temurin quite a while ago. Additionally, after running the
generate sources command, many of its subpackages fail to evaluate due
to missing binaries for versions the package expects. Because everything
provided by AdoptOpenJDK is either long-deprecated or also provided by
Temurin, its removal should not cause many problems.
By the same token, OpenJDK 12, 13, 14, 15, and 16 have also all been long
deemed EOL, and 13/14 are both actively broken and fail to build. These
packages, and their associated (and unnecessary) bootstrap chain are a
major factor in the tech debt of OpenJDK as an ecosystem in Nixpkgs.
OpenJDK 16 was the only user of OpenJFX 15, so it has also been removed.
By removing these packages, OpenJDK should hopefully be more
maintainable into the future.
2024-05-10 02:47:39 +02:00
|
|
|
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
|
|
|
|
2021-10-28 20:46:09 +02:00
|
|
|
openjdk8 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/8.nix
|
2023-10-08 01:26:09 +02:00
|
|
|
../development/compilers/zulu/8.nix
|
2021-10-28 20:46:09 +02:00
|
|
|
{ };
|
|
|
|
|
|
|
|
openjdk11 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/11.nix
|
2023-10-08 01:26:09 +02:00
|
|
|
../development/compilers/zulu/11.nix
|
2021-10-28 20:46:09 +02:00
|
|
|
{ openjfx = openjfx11; };
|
|
|
|
|
|
|
|
openjdk17 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/17.nix
|
2023-10-08 01:26:09 +02:00
|
|
|
../development/compilers/zulu/17.nix
|
2021-10-28 20:46:09 +02:00
|
|
|
{
|
|
|
|
inherit openjdk17-bootstrap;
|
2022-01-14 15:44:08 +01:00
|
|
|
openjfx = openjfx17;
|
2021-10-28 20:46:09 +02:00
|
|
|
};
|
2021-10-03 13:45:43 +02:00
|
|
|
|
2023-10-08 23:11:55 +02:00
|
|
|
openjdk21 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/21.nix
|
2023-10-08 23:15:19 +02:00
|
|
|
../development/compilers/zulu/21.nix
|
2023-10-08 23:11:55 +02:00
|
|
|
{
|
2023-10-05 15:08:34 +02:00
|
|
|
openjdk21-bootstrap = temurin-bin.jdk-21;
|
2023-10-08 23:11:55 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2021-10-03 13:45:43 +02:00
|
|
|
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
|
|
|
|
) {});
|
2021-10-28 20:46:09 +02:00
|
|
|
};
|
2016-10-30 16:44:56 +01:00
|
|
|
}
|
2024-02-06 16:05:49 +01:00
|
|
|
// lib.optionalAttrs config.allowAliases {
|
2024-02-10 18:00:38 +01:00
|
|
|
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'";
|
|
|
|
}
|