{ fetchFromGitHub, gradle_8, jdk11, lib, stdenv, rsync, runCommand, testers, }: let corretto = import ./mk-corretto.nix rec { inherit lib stdenv rsync runCommand testers ; jdk = jdk11; gradle = gradle_8; extraConfig = [ # jdk11 is built with --disable-warnings-as-errors (see openjdk/11.nix) # because of several compile errors. We need to include this parameter for # Corretto, too. "--disable-warnings-as-errors" ]; version = "11.0.29.7.1"; src = fetchFromGitHub { owner = "corretto"; repo = "corretto-11"; rev = version; hash = "sha256-/VlV8tAo1deOZ5Trc4VlLNtpjWx352qUGZmfVbj7HuU="; }; }; in corretto.overrideAttrs (oldAttrs: { patches = (oldAttrs.patches or [ ]) ++ [ ./corretto11-gradle8.patch ]; })