From 7f5f68d9ff29a3b2e97450171aab28e3ecc91373 Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Tue, 7 Oct 2025 22:19:48 +0300 Subject: [PATCH 1/3] jetbrains.jcef: build with Thrift 0.20.0 Upstream is incompatible with 0.21.0. --- .../compilers/jetbrains-jdk/jcef.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/jetbrains-jdk/jcef.nix b/pkgs/development/compilers/jetbrains-jdk/jcef.nix index ed517361a166..376e4323c267 100644 --- a/pkgs/development/compilers/jetbrains-jdk/jcef.nix +++ b/pkgs/development/compilers/jetbrains-jdk/jcef.nix @@ -99,6 +99,21 @@ let .${platform}; inherit (arches) depsArch projectArch targetArch; + thrift20 = thrift.overrideAttrs (old: { + version = "0.20.0"; + + src = fetchFromGitHub { + owner = "apache"; + repo = "thrift"; + tag = "v0.20.0"; + hash = "sha256-cwFTcaNHq8/JJcQxWSelwAGOLvZHoMmjGV3HBumgcWo="; + }; + + cmakeFlags = (old.cmakeFlags or [ ]) ++ [ + "-DCMAKE_POLICY_VERSION_MINIMUM=3.10" + ]; + }); + in stdenv.mkDerivation rec { pname = "jcef-jetbrains"; @@ -125,7 +140,7 @@ stdenv.mkDerivation rec { libXdamage nss nspr - thrift + thrift20 ]; src = fetchFromGitHub { @@ -184,7 +199,7 @@ stdenv.mkDerivation rec { -e 's|vcpkg_install_package(boost-filesystem boost-interprocess thrift)||' \ -i CMakeLists.txt - sed -e 's|vcpkg_bring_host_thrift()|set(THRIFT_COMPILER_HOST ${thrift}/bin/thrift)|' -i remote/CMakeLists.txt + sed -e 's|vcpkg_bring_host_thrift()|set(THRIFT_COMPILER_HOST ${lib.getExe thrift20})|' -i remote/CMakeLists.txt mkdir jcef_build cd jcef_build From 4f46ccb8b7e8af3671ef132e992084f9e7df1724 Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Tue, 7 Oct 2025 21:41:38 +0300 Subject: [PATCH 2/3] jetbrains.jcef: 1014 -> 1059 --- pkgs/development/compilers/jetbrains-jdk/jcef.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/jetbrains-jdk/jcef.nix b/pkgs/development/compilers/jetbrains-jdk/jcef.nix index 376e4323c267..516dd447affc 100644 --- a/pkgs/development/compilers/jetbrains-jdk/jcef.nix +++ b/pkgs/development/compilers/jetbrains-jdk/jcef.nix @@ -117,11 +117,11 @@ let in stdenv.mkDerivation rec { pname = "jcef-jetbrains"; - rev = "7a7b9383b3bf39c850feb0d103c6b829e2f48a6b"; + rev = "bb9fb310ed7f3abf858faf248c53bbb707be21f7"; # This is the commit number # Currently from the branch: https://github.com/JetBrains/jcef/tree/251 # Run `git rev-list --count HEAD` - version = "1014"; + version = "1083"; nativeBuildInputs = [ cmake @@ -147,16 +147,16 @@ stdenv.mkDerivation rec { owner = "jetbrains"; repo = "jcef"; inherit rev; - hash = "sha256-ZMxx5mwmsBiUneULHFUDOrJQ8yKuK9bfPz89vN31ql4="; + hash = "sha256-BHmGEhfkrUWDfrUFR8d5AgIq8qkAr+blX9n7ZVg8mtc="; }; cef-bin = let # `cef_binary_${CEF_VERSION}_linux64_minimal`, where CEF_VERSION is from $src/CMakeLists.txt - name = "cef_binary_122.1.9+gd14e051+chromium-122.0.6261.94_${platform}_minimal"; + name = "cef_binary_137.0.17+gf354b0e+chromium-137.0.7151.104_${platform}_minimal"; hash = { - "linuxarm64" = "sha256-wABtvz0JHitlkkB748I7yr02Oxs5lXvqDfrBAQiKWHU="; - "linux64" = "sha256-qlutM0IsE1emcMe/3p7kwMIK7ou1rZGvpUkrSMVPnCc="; + "linuxarm64" = "sha256-QKkJwLtYS3o7lf4T31jIww2LGuAJT3sNTeI3Jq0VEYQ="; + "linux64" = "sha256-qE5SOi0/6dPsewyemarTbWG9MbWCQUlng8TgqU+4Tak="; } .${platform}; urlName = builtins.replaceStrings [ "+" ] [ "%2B" ] name; From efd0262214c365126ee2ab0dd29fc4bdf0389528 Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Tue, 7 Oct 2025 22:22:43 +0300 Subject: [PATCH 3/3] jetbrains.jdk: 21.0.7 -> 21.0.8 --- pkgs/development/compilers/jetbrains-jdk/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/jetbrains-jdk/default.nix b/pkgs/development/compilers/jetbrains-jdk/default.nix index a42084e404fd..8c38c5ce701b 100644 --- a/pkgs/development/compilers/jetbrains-jdk/default.nix +++ b/pkgs/development/compilers/jetbrains-jdk/default.nix @@ -45,27 +45,27 @@ let in jdk.overrideAttrs (oldAttrs: rec { pname = "jetbrains-jdk" + lib.optionalString withJcef "-jcef"; - javaVersion = "21.0.7"; - build = "1038.58"; + javaVersion = "21.0.8"; + build = "1140.54"; # To get the new tag: # git clone https://github.com/jetbrains/jetbrainsruntime # cd jetbrainsruntime # git tag --points-at [revision] # Look for the line that starts with jbr- - openjdkTag = "jbr-release-21.0.7b1038.58"; + openjdkTag = "jbr-release-21.0.8b1140.54"; version = "${javaVersion}-b${build}"; src = fetchFromGitHub { owner = "JetBrains"; repo = "JetBrainsRuntime"; rev = "jb${version}"; - hash = "sha256-sGAMrE9gAt73jgLlNW8p5Lz37gFiK4ZvMQ8giE2Ia54="; + hash = "sha256-Iz5Sh9qRktFYsT7m90IG6LC5+tARtVnvqaiEEGLCAXc="; }; env = { BOOT_JDK = jdk.home; # run `git log -1 --pretty=%ct` in jdk repo for new value on update - SOURCE_DATE_EPOCH = 1745907200; + SOURCE_DATE_EPOCH = 1758959208; }; patches = [ ];