python3Packages.ghome-foyer-api: init at 1.1.1 (#380790)
[NixPkgs.git] / pkgs / development / compilers / corretto / 17.nix
blobec1c7d759798437a7f4ca2927878b984fb1359a2
2   fetchFromGitHub,
3   fetchurl,
4   gradle_7,
5   jdk17,
6   lib,
7   stdenv,
8   rsync,
9   runCommand,
10   testers,
13 let
14   corretto = import ./mk-corretto.nix rec {
15     inherit
16       lib
17       stdenv
18       rsync
19       runCommand
20       testers
21       ;
22     jdk = jdk17;
23     gradle = gradle_7;
24     version = "17.0.13.11.1";
25     src = fetchFromGitHub {
26       owner = "corretto";
27       repo = "corretto-17";
28       rev = version;
29       hash = "sha256-2jMre5aI02uDFjSgToTyVNriyb4EuZ01lKsNi822o5Q=";
30     };
31   };
33 corretto.overrideAttrs (
34   final: prev: {
35     # Corretto17 has incorporated this patch already so it fails to apply.
36     # We thus skip it here.
37     # See https://github.com/corretto/corretto-17/pull/158
38     patches = lib.remove (fetchurl {
39       url = "https://git.alpinelinux.org/aports/plain/community/openjdk17/FixNullPtrCast.patch?id=41e78a067953e0b13d062d632bae6c4f8028d91c";
40       sha256 = "sha256-LzmSew51+DyqqGyyMw2fbXeBluCiCYsS1nCjt9hX6zo=";
41     }) (prev.patches or [ ]);
42   }