2020-04-24 23:36:52 +00:00
|
|
|
{ pkgs }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
let
|
2024-07-27 06:49:29 +00: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-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
in {
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit openjfx11 openjfx17 openjfx21 openjfx22;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
compiler = let
|
|
|
|
mkOpenjdk = path-linux: path-darwin: args:
|
2024-09-26 11:04:55 +00:00
|
|
|
if stdenv.hostPlatform.isLinux
|
2021-12-06 16:07:01 +00:00
|
|
|
then mkOpenjdkLinuxOnly path-linux args
|
|
|
|
else let
|
|
|
|
openjdk = callPackage path-darwin {};
|
|
|
|
in openjdk // { headless = openjdk; };
|
|
|
|
|
|
|
|
mkOpenjdkLinuxOnly = path-linux: args: let
|
2024-07-31 10:19:44 +00:00
|
|
|
openjdk = callPackage path-linux (args);
|
2024-09-26 11:04:55 +00:00
|
|
|
in assert stdenv.hostPlatform.isLinux; openjdk // {
|
2021-12-06 16:07:01 +00:00
|
|
|
headless = openjdk.override { headless = true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
in rec {
|
2024-01-02 11:29:13 +00:00
|
|
|
corretto11 = callPackage ../development/compilers/corretto/11.nix { };
|
|
|
|
corretto17 = callPackage ../development/compilers/corretto/17.nix { };
|
2024-05-15 15:35:15 +00:00
|
|
|
corretto21 = callPackage ../development/compilers/corretto/21.nix { };
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
openjdk8-bootstrap = temurin-bin.jdk-8;
|
|
|
|
|
|
|
|
openjdk11-bootstrap = temurin-bin.jdk-11;
|
|
|
|
|
|
|
|
openjdk17-bootstrap = temurin-bin.jdk-17;
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
openjdk8 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/8.nix
|
2023-10-09 19:29:22 +00:00
|
|
|
../development/compilers/zulu/8.nix
|
2021-12-06 16:07:01 +00:00
|
|
|
{ };
|
|
|
|
|
|
|
|
openjdk11 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/11.nix
|
2023-10-09 19:29:22 +00:00
|
|
|
../development/compilers/zulu/11.nix
|
2021-12-06 16:07:01 +00:00
|
|
|
{ openjfx = openjfx11; };
|
|
|
|
|
|
|
|
openjdk17 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/17.nix
|
2023-10-09 19:29:22 +00:00
|
|
|
../development/compilers/zulu/17.nix
|
2021-12-06 16:07:01 +00:00
|
|
|
{
|
|
|
|
inherit openjdk17-bootstrap;
|
2022-02-20 05:27:41 +00:00
|
|
|
openjfx = openjfx17;
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
openjdk21 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/21.nix
|
|
|
|
../development/compilers/zulu/21.nix
|
|
|
|
{
|
2023-11-16 04:20:00 +00:00
|
|
|
openjdk21-bootstrap = temurin-bin.jdk-21;
|
2023-10-09 19:29:22 +00:00
|
|
|
openjfx = openjfx21;
|
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
openjdk22 = mkOpenjdk
|
|
|
|
../development/compilers/openjdk/22.nix
|
|
|
|
../development/compilers/zulu/22.nix
|
|
|
|
{
|
2024-07-27 06:49:29 +00:00
|
|
|
openjdk22-bootstrap = temurin-bin.jdk-22;
|
2024-04-21 15:54:59 +00:00
|
|
|
openjfx = openjfx22;
|
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
temurin-bin = recurseIntoAttrs (callPackage (
|
2024-09-26 11:04:55 +00:00
|
|
|
if stdenv.hostPlatform.isLinux
|
2022-09-30 11:47:45 +00:00
|
|
|
then ../development/compilers/temurin-bin/jdk-linux.nix
|
|
|
|
else ../development/compilers/temurin-bin/jdk-darwin.nix
|
|
|
|
) {});
|
|
|
|
|
|
|
|
semeru-bin = recurseIntoAttrs (callPackage (
|
2024-09-26 11:04:55 +00:00
|
|
|
if stdenv.hostPlatform.isLinux
|
2022-09-30 11:47:45 +00:00
|
|
|
then ../development/compilers/semeru-bin/jdk-linux.nix
|
|
|
|
else ../development/compilers/semeru-bin/jdk-darwin.nix
|
|
|
|
) {});
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|
2024-02-07 01:22:34 +00:00
|
|
|
// lib.optionalAttrs config.allowAliases {
|
2024-02-29 20:09:43 +00:00
|
|
|
jogl_2_4_0 = throw "'jogl_2_4_0' is renamed to/replaced by 'jogl'";
|
2024-02-07 01:22:34 +00:00
|
|
|
mavenfod = throw "'mavenfod' is renamed to/replaced by 'maven.buildMavenPackage'";
|
|
|
|
}
|