Skip to content

Commit

Permalink
jetbrains.jdk: openjdk11 (11.0.13-b1751.25) → openjdk17 (17.0.3-b469.37)
Browse files Browse the repository at this point in the history
> 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
  • Loading branch information
fabianhjr committed Sep 19, 2022
1 parent f8a5339 commit 27a4de4
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pkgs/development/compilers/jetbrains-jdk/default.nix
Original file line number Diff line number Diff line change
@@ -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 = ''
Expand All @@ -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";
};
Expand Down

0 comments on commit 27a4de4

Please sign in to comment.