Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchFromGitHub, 3 fetchurl, 4 gradle_7, 5 jdk17, 6 lib, 7 stdenv, 8 rsync, 9 runCommand, 10 testers, 11}: 12 13let 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.14.7.1"; 25 src = fetchFromGitHub { 26 owner = "corretto"; 27 repo = "corretto-17"; 28 rev = version; 29 hash = "sha256-ohQrguEJ8QvTaNjyQxKFujGhXNxCQTGkLILurzD7cy0="; 30 }; 31 }; 32in 33corretto.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 } 43)