corretto25: init at 25.0.1.9.1

This commit is contained in:
Rolf Schröder
2025-11-04 22:23:34 +01:00
parent 832f7223d8
commit cdce1070e8
5 changed files with 67 additions and 6 deletions
@@ -0,0 +1,41 @@
{
fetchFromGitHub,
gradle_9,
jdk25,
lib,
stdenv,
rsync,
pandoc,
runCommand,
testers,
}:
let
corretto = import ./mk-corretto.nix rec {
inherit
lib
stdenv
rsync
runCommand
testers
;
jdk = jdk25;
gradle = gradle_9;
version = "25.0.1.9.1";
src = fetchFromGitHub {
owner = "corretto";
repo = "corretto-25";
rev = version;
hash = "sha256-eAjepqxp5LVQgP/HcxwwdjbXxy5jUOJC4HYntcHNX0o=";
};
extraNativeBuildInputs = [ pandoc ];
};
in
corretto.overrideAttrs (
final: prev: {
patches = (prev.patches or [ ]) ++ [
# See patches in openjdk/generic.nix.
./remove_removal_of_wformat_during_test_compilation.patch
];
}
)
@@ -6,6 +6,7 @@
stdenv,
gradle,
extraConfig ? [ ],
extraNativeBuildInputs ? [ ],
rsync,
runCommand,
testers,
@@ -29,11 +30,14 @@ jdk.overrideAttrs (
finalAttrs: oldAttrs: {
inherit pname version src;
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [
jdk
gradle
rsync
];
nativeBuildInputs =
oldAttrs.nativeBuildInputs
++ [
jdk
gradle
rsync
]
++ extraNativeBuildInputs;
dontConfigure = true;
@@ -41,7 +45,8 @@ jdk.overrideAttrs (
let
extra_config = builtins.concatStringsSep " " extraConfig;
in
''
(oldAttrs.postPatch or "")
+ ''
# The rpm/deb task definitions require a Gradle plugin which we don't
# have and so the build fails. We'll simply remove them here because
# they are not needed anyways.
@@ -0,0 +1,13 @@
diff --git a/make/common/TestFilesCompilation.gmk b/make/common/TestFilesCompilation.gmk
index fd1c54eaf..c1e240a19 100644
--- a/make/common/TestFilesCompilation.gmk
+++ b/make/common/TestFilesCompilation.gmk
@@ -112,7 +112,7 @@ define SetupTestFilesCompilationBody
CXXFLAGS := $$(TEST_CFLAGS) $$($1_CFLAGS) $$($1_CFLAGS_$$(name)), \
LD_SET_ORIGIN := $$($1_LD_SET_ORIGIN), \
LDFLAGS := $$($1_LDFLAGS) $$($1_LDFLAGS_$$(name)), \
- DISABLED_WARNINGS_gcc := format undef unused-but-set-variable \
+ DISABLED_WARNINGS_gcc := undef unused-but-set-variable \
unused-const-variable unused-function unused-value \
unused-variable, \
DISABLED_WARNINGS_clang := format-nonliteral \
+1
View File
@@ -4190,6 +4190,7 @@ with pkgs;
corretto11 = javaPackages.compiler.corretto11;
corretto17 = javaPackages.compiler.corretto17;
corretto21 = javaPackages.compiler.corretto21;
corretto25 = javaPackages.compiler.corretto25;
inherit (callPackage ../development/compilers/crystal { })
crystal_1_14
+1
View File
@@ -47,6 +47,7 @@ in
corretto11 = callPackage ../development/compilers/corretto/11.nix { };
corretto17 = callPackage ../development/compilers/corretto/17.nix { };
corretto21 = callPackage ../development/compilers/corretto/21.nix { };
corretto25 = callPackage ../development/compilers/corretto/25.nix { };
openjdk8 = mkOpenjdk "8";
openjdk11 = mkOpenjdk "11";