From 609c36a0ccd51b64460758134bf4ad01c95c61e5 Mon Sep 17 00:00:00 2001 From: Leona Maroni Date: Sat, 20 Dec 2025 15:13:26 +0100 Subject: [PATCH] jetbrains.jcef: fix build with gcc15 The pinned `thrift` version doensn't include the patch for GCC15 compatability. This change adds this patch. --- pkgs/development/compilers/jetbrains-jdk/jcef.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/compilers/jetbrains-jdk/jcef.nix b/pkgs/development/compilers/jetbrains-jdk/jcef.nix index e0154b3bcae9..04183c9346ae 100644 --- a/pkgs/development/compilers/jetbrains-jdk/jcef.nix +++ b/pkgs/development/compilers/jetbrains-jdk/jcef.nix @@ -1,6 +1,7 @@ { fetchFromGitHub, fetchurl, + fetchpatch, stdenv, cmake, python3, @@ -74,6 +75,15 @@ let cmakeFlags = (old.cmakeFlags or [ ]) ++ [ "-DCMAKE_POLICY_VERSION_MINIMUM=3.10" ]; + patches = (old.patches or [ ]) ++ [ + # Fix build with gcc15 + # https://github.com/apache/thrift/pull/3078 + (fetchpatch { + name = "thrift-add-missing-cstdint-include-gcc15.patch"; + url = "https://github.com/apache/thrift/commit/947ad66940cfbadd9b24ba31d892dfc1142dd330.patch"; + hash = "sha256-pWcG6/BepUwc/K6cBs+6d74AWIhZ2/wXvCunb/KyB0s="; + }) + ]; }); in