mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, jetbrains
|
|
, openjdk17
|
|
}:
|
|
|
|
openjdk17.overrideAttrs (oldAttrs: rec {
|
|
pname = "jetbrains-jdk";
|
|
version = "17.0.3-b469.37";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JetBrains";
|
|
repo = "JetBrainsRuntime";
|
|
rev = "jb${version}";
|
|
hash =
|
|
# Upstream issue: https://github.com/JetBrains/JetBrainsRuntime/issues/163
|
|
if stdenv.isDarwin then "sha256-ExRvjs53rIuhUx4oCgAqu1Av3CNAgmE1ZlN0srEh3XM="
|
|
else "sha256-O+OIDRJcIsb/vhO2+SYuYdUYWYTGkBcQ9cHTExLIFDE=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
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.
|
|
'';
|
|
homepage = "https://confluence.jetbrains.com/display/JBR/JetBrains+Runtime";
|
|
inherit (openjdk17.meta) license platforms mainProgram;
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
|
|
passthru = oldAttrs.passthru // {
|
|
home = "${jetbrains.jdk}/lib/openjdk";
|
|
};
|
|
})
|