2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jetbrains
|
|
|
|
, openjdk17
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
openjdk17.overrideAttrs (oldAttrs: rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "jetbrains-jdk";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "17.0.3-b469.37";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JetBrains";
|
|
|
|
repo = "JetBrainsRuntime";
|
2021-08-05 21:33:18 +00:00
|
|
|
rev = "jb${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
hash =
|
|
|
|
# Upstream issue: https://github.com/JetBrains/JetBrainsRuntime/issues/163
|
|
|
|
if stdenv.isDarwin then "sha256-ExRvjs53rIuhUx4oCgAqu1Av3CNAgmE1ZlN0srEh3XM="
|
|
|
|
else "sha256-O+OIDRJcIsb/vhO2+SYuYdUYWYTGkBcQ9cHTExLIFDE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An OpenJDK fork to better support Jetbrains's products.";
|
|
|
|
longDescription = ''
|
|
|
|
JetBrains Runtime is a runtime environment for running IntelliJ Platform
|
|
|
|
based products on Windows, Mac OS X, and Linux. JetBrains Runtime is
|
|
|
|
based on OpenJDK project with some modifications. These modifications
|
|
|
|
include: Subpixel Anti-Aliasing, enhanced font rendering on Linux, HiDPI
|
|
|
|
support, ligatures, some fixes for native crashes not presented in
|
|
|
|
official build, and other small enhancements.
|
|
|
|
|
|
|
|
JetBrains Runtime is not a certified build of OpenJDK. Please, use at
|
|
|
|
your own risk.
|
|
|
|
'';
|
2021-08-05 21:33:18 +00:00
|
|
|
homepage = "https://confluence.jetbrains.com/display/JBR/JetBrains+Runtime";
|
2022-09-22 12:36:57 +00:00
|
|
|
inherit (openjdk17.meta) license platforms mainProgram;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = oldAttrs.passthru // {
|
|
|
|
home = "${jetbrains.jdk}/lib/openjdk";
|
|
|
|
};
|
|
|
|
})
|