2018-07-21 00:44:44 +00:00
|
|
|
{ pkgs }:
|
2016-10-30 15:44:56 +00:00
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
2024-10-06 02:44:39 +00:00
|
|
|
{
|
|
|
|
inherit (pkgs) openjfx17 openjfx21 openjfx23;
|
2021-10-28 18:46:09 +00:00
|
|
|
|
|
|
|
compiler = let
|
2024-10-18 04:49:15 +00:00
|
|
|
mkOpenjdk = featureVersion: path-darwin:
|
2021-10-28 18:46:09 +00:00
|
|
|
if stdenv.hostPlatform.isLinux
|
2024-10-18 04:49:15 +00:00
|
|
|
then mkOpenjdkLinuxOnly featureVersion
|
2021-10-28 18:46:09 +00:00
|
|
|
else let
|
|
|
|
openjdk = callPackage path-darwin {};
|
|
|
|
in openjdk // { headless = openjdk; };
|
|
|
|
|
2024-10-18 04:49:15 +00:00
|
|
|
mkOpenjdkLinuxOnly = featureVersion: let
|
|
|
|
openjdk = callPackage ../development/compilers/openjdk/generic.nix { inherit featureVersion; };
|
2024-02-08 22:09:43 +00:00
|
|
|
in assert stdenv.hostPlatform.isLinux; openjdk // {
|
2021-10-28 18:46:09 +00:00
|
|
|
headless = openjdk.override { headless = true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
in rec {
|
2023-10-20 07:23:40 +00:00
|
|
|
corretto11 = callPackage ../development/compilers/corretto/11.nix { };
|
|
|
|
corretto17 = callPackage ../development/compilers/corretto/17.nix { };
|
2024-04-26 07:05:55 +00:00
|
|
|
corretto21 = callPackage ../development/compilers/corretto/21.nix { };
|
2023-10-20 07:23:40 +00:00
|
|
|
|
2024-10-18 04:49:15 +00:00
|
|
|
openjdk8 = mkOpenjdk "8" ../development/compilers/zulu/8.nix;
|
|
|
|
openjdk11 = mkOpenjdk "11" ../development/compilers/zulu/11.nix;
|
|
|
|
openjdk17 = mkOpenjdk "17" ../development/compilers/zulu/17.nix;
|
|
|
|
openjdk21 = mkOpenjdk "21" ../development/compilers/zulu/21.nix;
|
|
|
|
openjdk23 = mkOpenjdk "23" ../development/compilers/zulu/23.nix;
|
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 00:47:39 +00:00
|
|
|
|
2024-10-18 04:49:15 +00:00
|
|
|
# Legacy aliases
|
2024-10-25 12:32:26 +00:00
|
|
|
openjdk8-bootstrap = temurin-bin.jdk-8;
|
|
|
|
openjdk11-bootstrap = temurin-bin.jdk-11;
|
|
|
|
openjdk17-bootstrap = temurin-bin.jdk-17;
|
2024-09-24 16:51:28 +00:00
|
|
|
|
2021-10-03 11:45:43 +00:00
|
|
|
temurin-bin = recurseIntoAttrs (callPackage (
|
|
|
|
if stdenv.hostPlatform.isLinux
|
|
|
|
then ../development/compilers/temurin-bin/jdk-linux.nix
|
|
|
|
else ../development/compilers/temurin-bin/jdk-darwin.nix
|
|
|
|
) {});
|
|
|
|
|
|
|
|
semeru-bin = recurseIntoAttrs (callPackage (
|
|
|
|
if stdenv.hostPlatform.isLinux
|
|
|
|
then ../development/compilers/semeru-bin/jdk-linux.nix
|
|
|
|
else ../development/compilers/semeru-bin/jdk-darwin.nix
|
|
|
|
) {});
|
2021-10-28 18:46:09 +00:00
|
|
|
};
|
2016-10-30 15:44:56 +00:00
|
|
|
}
|
2024-02-06 15:05:49 +00:00
|
|
|
// lib.optionalAttrs config.allowAliases {
|
2024-02-10 17:00:38 +00:00
|
|
|
jogl_2_4_0 = throw "'jogl_2_4_0' is renamed to/replaced by 'jogl'";
|
2024-02-06 15:05:49 +00:00
|
|
|
mavenfod = throw "'mavenfod' is renamed to/replaced by 'maven.buildMavenPackage'";
|
|
|
|
}
|