From 27a4de43288037d64f9d0bb737ef7350517f6a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Heredia=20Montiel?= Date: Fri, 1 Apr 2022 15:31:40 -0600 Subject: [PATCH] =?UTF-8?q?jetbrains.jdk:=20openjdk11=20(11.0.13-b1751.25)?= =?UTF-8?q?=20=E2=86=92=20openjdk17=20(17.0.3-b469.37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > With the IntelliJ IDEA 2022.2 EAP we are moving from JetBrains Runtime 11 (JBR11) to JetBrains Runtime 17 (JBR17). Starting with this build, all IntelliJ IDEA 2022.2 updates will come with JBR17. This will have the following effects: > - A significant performance improvement allowing faster and smoother IDE operation. > - Better security, as JBR17 is based on the latest OpenJDK LTS. > - Better rendering performance on macOS, as JetBrains Runtime 17 leverages Metal API. > - Increased accessibility on macOS, as JBR17 features integration with VoiceOver screen reader. > - Usage of Vector API designed to express vector computations that compile at runtime to vector instructions on supported CPU architectures, thus achieving performance superior to equivalent scalar computations. From: https://blog.jetbrains.com/idea/2022/05/intellij-idea-2022-2-eap-1/#JetBrains_Runtime --- .../compilers/jetbrains-jdk/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/jetbrains-jdk/default.nix b/pkgs/development/compilers/jetbrains-jdk/default.nix index b49898e9292a..27ea63173b20 100644 --- a/pkgs/development/compilers/jetbrains-jdk/default.nix +++ b/pkgs/development/compilers/jetbrains-jdk/default.nix @@ -1,16 +1,24 @@ -{ lib, openjdk11, fetchFromGitHub, jetbrains }: +{ lib +, stdenv +, fetchFromGitHub +, jetbrains +, openjdk17 +}: -openjdk11.overrideAttrs (oldAttrs: rec { +openjdk17.overrideAttrs (oldAttrs: rec { pname = "jetbrains-jdk"; - version = "11_0_13-b1751.25"; + version = "17.0.3-b469.37"; src = fetchFromGitHub { owner = "JetBrains"; repo = "JetBrainsRuntime"; rev = "jb${version}"; - sha256 = "sha256-TPNYZUkAoiZfp7Ci3fslKnRNGY1lnyIhXYUt6J31lwI="; + hash = + # Upstream issue: https://github.com/JetBrains/JetBrainsRuntime/issues/163 + if stdenv.isDarwin then "sha256-ExRvjs53rIuhUx4oCgAqu1Av3CNAgmE1ZlN0srEh3XM=" + else "sha256-O+OIDRJcIsb/vhO2+SYuYdUYWYTGkBcQ9cHTExLIFDE="; }; - patches = []; + meta = with lib; { description = "An OpenJDK fork to better support Jetbrains's products."; longDescription = '' @@ -25,9 +33,10 @@ openjdk11.overrideAttrs (oldAttrs: rec { your own risk. ''; homepage = "https://confluence.jetbrains.com/display/JBR/JetBrains+Runtime"; - inherit (openjdk11.meta) license platforms mainProgram; + inherit (openjdk17.meta) license platforms mainProgram; maintainers = with maintainers; [ edwtjo ]; }; + passthru = oldAttrs.passthru // { home = "${jetbrains.jdk}/lib/openjdk"; };