Files
Rolf Schröder 0057e680db corretto17: 17.0.14.7.1 -> 17.0.17.10.1
Gradle7 is phased out in nixpkgs but corretto <= 21 does not support
Gradle8. See https://github.com/corretto/corretto-21/issues/114#issuecomment-3198171683.
Hence, ./corretto17-gradle8.patch is added. This patch is loosely based
on https://github.com/corretto/corretto-jdk/pull/135.
2025-11-04 22:25:56 +01:00

46 lines
1.0 KiB
Nix

{
fetchFromGitHub,
fetchurl,
gradle_8,
jdk17,
lib,
stdenv,
rsync,
runCommand,
testers,
}:
let
corretto = import ./mk-corretto.nix rec {
inherit
lib
stdenv
rsync
runCommand
testers
;
jdk = jdk17;
gradle = gradle_8;
version = "17.0.17.10.1";
src = fetchFromGitHub {
owner = "corretto";
repo = "corretto-17";
rev = version;
hash = "sha256-Z8+g5jXjcWNTYU9Xvze7scu348okMauGMhSZwX1sS9w=";
};
};
in
corretto.overrideAttrs (
final: prev: {
# Corretto17 has incorporated this patch already so it fails to apply.
# We thus skip it here.
# See https://github.com/corretto/corretto-17/pull/158
patches =
lib.remove (fetchurl {
url = "https://git.alpinelinux.org/aports/plain/community/openjdk17/FixNullPtrCast.patch?id=41e78a067953e0b13d062d632bae6c4f8028d91c";
sha256 = "sha256-LzmSew51+DyqqGyyMw2fbXeBluCiCYsS1nCjt9hX6zo=";
}) (prev.patches or [ ])
++ [ ./corretto17-gradle8.patch ];
}
)