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 then
|
2024-10-18 04:49:15 +00:00
|
|
|
mkOpenjdkLinuxOnly featureVersion
|
2021-10-28 18:46:09 +00:00
|
|
|
else
|
|
|
|
let
|
|
|
|
openjdk = callPackage path-darwin { };
|
|
|
|
in
|
|
|
|
openjdk // { headless = openjdk; };
|
2024-12-10 19:26:33 +00:00
|
|
|
|
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; };
|
2024-12-10 19:26:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
rec {
|
2023-10-20 07:23:40 +00:00
|
|
|
corretto11 = callPackage ../development/compilers/corretto/11.nix { };
|
2021-10-28 18:46:09 +00:00
|
|
|
corretto17 = callPackage ../development/compilers/corretto/17.nix { };
|
2024-04-26 07:05:55 +00:00
|
|
|
corretto21 = callPackage ../development/compilers/corretto/21.nix { };
|
2024-12-10 19:26:33 +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;
|
2021-10-28 18:46:09 +00:00
|
|
|
|
2023-10-20 07:23:40 +00:00
|
|
|
# Legacy aliases
|
2024-10-18 04:49:15 +00:00
|
|
|
openjdk8-bootstrap = temurin-bin.jdk-8;
|
2024-10-25 12:32:26 +00:00
|
|
|
openjdk11-bootstrap = temurin-bin.jdk-11;
|
|
|
|
openjdk17-bootstrap = temurin-bin.jdk-17;
|
2024-12-10 19:26:33 +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
|
|
|
|
) { }
|
|
|
|
);
|
2024-12-10 19:26:33 +00:00
|
|
|
|
2021-10-03 11:45:43 +00:00
|
|
|
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'";
|
|
|
|
}
|