3d9220e6ca
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, ./corretto21-gradle8.patch is added. This patch is loosely based on https://github.com/corretto/corretto-jdk/pull/135.
38 lines
605 B
Nix
38 lines
605 B
Nix
{
|
|
fetchFromGitHub,
|
|
gradle_8,
|
|
jdk21,
|
|
lib,
|
|
stdenv,
|
|
rsync,
|
|
runCommand,
|
|
testers,
|
|
}:
|
|
|
|
let
|
|
corretto = import ./mk-corretto.nix rec {
|
|
inherit
|
|
lib
|
|
stdenv
|
|
rsync
|
|
runCommand
|
|
testers
|
|
;
|
|
jdk = jdk21;
|
|
gradle = gradle_8;
|
|
version = "21.0.9.11.1";
|
|
src = fetchFromGitHub {
|
|
owner = "corretto";
|
|
repo = "corretto-21";
|
|
rev = version;
|
|
hash = "sha256-d62rXVgVlOM3M18c8GioFtMi/GhmCEMLQwy/EWAJW7I=";
|
|
};
|
|
};
|
|
in
|
|
corretto.overrideAttrs (oldAttrs: {
|
|
patches = (oldAttrs.patches or [ ]) ++ [
|
|
./corretto21-gradle8.patch
|
|
];
|
|
|
|
})
|