2024-02-04 11:28:46 +00:00
|
|
|
{ fetchFromGitHub
|
2024-02-04 12:10:23 +00:00
|
|
|
, fetchurl
|
2023-10-20 07:23:40 +00:00
|
|
|
, gradle_7
|
|
|
|
, jdk17
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, rsync
|
|
|
|
, runCommand
|
|
|
|
, testers
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2024-02-04 12:10:23 +00:00
|
|
|
corretto = import ./mk-corretto.nix rec {
|
2023-10-20 07:23:40 +00:00
|
|
|
inherit lib stdenv rsync runCommand testers;
|
|
|
|
jdk = jdk17;
|
|
|
|
gradle = gradle_7;
|
2024-02-04 12:10:23 +00:00
|
|
|
version = "17.0.11.9.1";
|
2023-10-20 07:23:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "corretto";
|
|
|
|
repo = "corretto-17";
|
2024-02-04 12:10:23 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-LxZSFILFfyh8oBiYEnuBQ0Og2i713qdK2jIiCBnrlj0=";
|
2023-10-20 07:23:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2024-02-04 12:10:23 +00:00
|
|
|
corretto.overrideAttrs (final: prev: {
|
|
|
|
# HACK: Removes the FixNullPtrCast patch, as it fails to apply. Need to figure out what causes it to fail to apply.
|
|
|
|
patches = lib.remove
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://git.alpinelinux.org/aports/plain/community/openjdk17/FixNullPtrCast.patch?id=41e78a067953e0b13d062d632bae6c4f8028d91c";
|
|
|
|
sha256 = "sha256-LzmSew51+DyqqGyyMw2fbXeBluCiCYsS1nCjt9hX6zo=";
|
|
|
|
})
|
2024-05-26 21:22:44 +00:00
|
|
|
(prev.patches or [ ]);
|
2024-02-04 12:10:23 +00:00
|
|
|
})
|