From 8caacb2e8f3f3dfac34d4d44915a0885470dd00f Mon Sep 17 00:00:00 2001 From: Janrupf Date: Fri, 18 Jul 2025 04:47:18 +0200 Subject: [PATCH 1/2] jetbrains.jdk-17-*: 17.0.11-b1207.24 -> 17.0.15-b1381 --- .../compilers/jetbrains-jdk/17.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pkgs/development/compilers/jetbrains-jdk/17.nix b/pkgs/development/compilers/jetbrains-jdk/17.nix index 6498bd4f2e39..fe215fcf79ad 100644 --- a/pkgs/development/compilers/jetbrains-jdk/17.nix +++ b/pkgs/development/compilers/jetbrains-jdk/17.nix @@ -43,32 +43,27 @@ let in openjdk17.overrideAttrs (oldAttrs: rec { pname = "jetbrains-jdk" + lib.optionalString withJcef "-jcef"; - javaVersion = "17.0.11"; - build = "1207.24"; + javaVersion = "17.0.15"; + build = "1381"; # To get the new tag: # git clone https://github.com/jetbrains/jetbrainsruntime # cd jetbrainsruntime - # git reset --hard [revision] - # git log --simplify-by-decoration --decorate=short --pretty=short | grep "jbr-" --color=never | cut -d "(" -f2 | cut -d ")" -f1 | awk '{print $2}' | sort -t "-" -k 2 -g | tail -n 1 | tr -d "," - openjdkTag = "jbr-17.0.8+7"; + # git tag --points-at [revision] + # Look for the line that starts with jbr- + openjdkTag = "jbr-17.0.15+6"; version = "${javaVersion}-b${build}"; src = fetchFromGitHub { owner = "JetBrains"; repo = "JetBrainsRuntime"; rev = "jb${version}"; - hash = "sha256-a7cJF2iCW/1GK0/GmVbaY5pYcn3YtZy5ngFkyAGRhu0="; + hash = "sha256-Ckv2SNugHK75Af+ZzI91+QodOHIa5TMcjVQYsO45mQo="; }; env = { BOOT_JDK = openjdk17-bootstrap.home; # run `git log -1 --pretty=%ct` in jdk repo for new value on update - SOURCE_DATE_EPOCH = 1715809405; - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU (toString [ - "-Wno-error=format-overflow" - "-Wno-error=template-id-cdtor" - "-Wno-error=calloc-transposed-args" - ]); + SOURCE_DATE_EPOCH = 1745907200; }; patches = [ ]; From 50fbd3334953a47b0bae0c9f88b98432c735fcfe Mon Sep 17 00:00:00 2001 From: Janrupf Date: Fri, 18 Jul 2025 07:00:06 +0200 Subject: [PATCH 2/2] jetbrains.jdk: 21.0.6-b895.109 -> 21.0.7-1038.58 --- .../compilers/jetbrains-jdk/default.nix | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/development/compilers/jetbrains-jdk/default.nix b/pkgs/development/compilers/jetbrains-jdk/default.nix index 0aea0f094780..ea2796694d56 100644 --- a/pkgs/development/compilers/jetbrains-jdk/default.nix +++ b/pkgs/development/compilers/jetbrains-jdk/default.nix @@ -27,6 +27,8 @@ wayland, udev, fontconfig, + shaderc, + vulkan-headers, }: assert debugBuild -> withJcef; @@ -42,27 +44,27 @@ let in jdk.overrideAttrs (oldAttrs: rec { pname = "jetbrains-jdk" + lib.optionalString withJcef "-jcef"; - javaVersion = "21.0.6"; - build = "895.109"; + javaVersion = "21.0.7"; + build = "1038.58"; # To get the new tag: # git clone https://github.com/jetbrains/jetbrainsruntime # cd jetbrainsruntime - # git checkout jbr-release-${javaVersion}b${build} - # git log --simplify-by-decoration --decorate=short --pretty=short | grep "jbr-" --color=never | cut -d "(" -f2 | cut -d ")" -f1 | awk '{print $2}' | sort -t "-" -k 2 -g | tail -n 1 | tr -d "," - openjdkTag = "jbr-21.0.6+7"; + # git tag --points-at [revision] + # Look for the line that starts with jbr- + openjdkTag = "jbr-release-21.0.7b1038.58"; version = "${javaVersion}-b${build}"; src = fetchFromGitHub { owner = "JetBrains"; repo = "JetBrainsRuntime"; rev = "jb${version}"; - hash = "sha256-Neh0PGer4JnNaForBKRlGPLft5cae5GktreyPRNjFCk="; + hash = "sha256-sGAMrE9gAt73jgLlNW8p5Lz37gFiK4ZvMQ8giE2Ia54="; }; env = { BOOT_JDK = jdk.home; # run `git log -1 --pretty=%ct` in jdk repo for new value on update - SOURCE_DATE_EPOCH = 1726275531; + SOURCE_DATE_EPOCH = 1745907200; }; patches = [ ]; @@ -170,9 +172,15 @@ jdk.overrideAttrs (oldAttrs: rec { autoconf unzip rsync + shaderc # glslc ] ++ oldAttrs.nativeBuildInputs; + buildInputs = [ + vulkan-headers + ] + ++ oldAttrs.buildInputs or [ ]; + meta = with lib; { description = "OpenJDK fork to better support Jetbrains's products"; longDescription = ''