nixpkgs/pkgs/top-level/java-packages.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

71 lines
2.2 KiB
Nix

{ pkgs }:
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 { };
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;
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
) { }
);
};
}
// lib.optionalAttrs config.allowAliases {
jogl_2_4_0 = throw "'jogl_2_4_0' is renamed to/replaced by 'jogl'";
mavenfod = throw "'mavenfod' is renamed to/replaced by 'maven.buildMavenPackage'";
}