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

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

55 lines
1.9 KiB
Nix
Raw Normal View History

{ pkgs }:
2016-10-30 15:44:56 +00:00
with pkgs;
{
inherit (pkgs) openjfx17 openjfx21 openjfx23;
compiler = let
mkOpenjdk = featureVersion: path-darwin:
if stdenv.hostPlatform.isLinux
then mkOpenjdkLinuxOnly featureVersion
else let
openjdk = callPackage path-darwin {};
in openjdk // { headless = openjdk; };
mkOpenjdkLinuxOnly = featureVersion: let
openjdk = callPackage ../development/compilers/openjdk/generic.nix { inherit featureVersion; };
in assert stdenv.hostPlatform.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 07:05:55 +00:00
corretto21 = callPackage ../development/compilers/corretto/21.nix { };
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;
# Legacy aliases
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
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
) {});
};
2016-10-30 15:44:56 +00:00
}
2024-02-06 15:05:49 +00:00
// lib.optionalAttrs config.allowAliases {
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'";
}