Skip to content

Commit

Permalink
Merge pull request #183763 from LibreCybernetics/update-idea-community
Browse files Browse the repository at this point in the history
jetbrains.jdk: openjdk11 (11.0.13-b1751.25) → openjdk17 (17.0.3-b469.37)
  • Loading branch information
uri-canva authored Sep 20, 2022
2 parents 749458e + 420b83d commit 9a3b426
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 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,12 @@ 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 ];

broken = stdenv.isDarwin;
};

passthru = oldAttrs.passthru // {
home = "${jetbrains.jdk}/lib/openjdk";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/java-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ in {
inherit openjdk15-bootstrap;
});

openjdk17-bootstrap = mkBootstrap adoptopenjdk-16
openjdk17-bootstrap = mkBootstrap adoptopenjdk-17
../development/compilers/openjdk/16.nix
(bootstrapArgs // {
inherit openjdk16-bootstrap;
Expand Down

0 comments on commit 9a3b426

Please sign in to comment.