From 24a904e79eb369aa73cb7bd10bfccd4dfff2ec4d Mon Sep 17 00:00:00 2001 From: Pui Yong Qing Date: Sun, 28 Dec 2025 06:07:57 +0800 Subject: [PATCH] animeko: fix build with gcc15 include patch for gcc15 compatability to the pinned thrift --- pkgs/by-name/an/animeko/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/an/animeko/package.nix b/pkgs/by-name/an/animeko/package.nix index 35a4d225876c..1d6e98bc0c2f 100644 --- a/pkgs/by-name/an/animeko/package.nix +++ b/pkgs/by-name/an/animeko/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, gradle, autoPatchelfHook, jetbrains, # Requird by upstream due to JCEF dependency @@ -97,6 +98,16 @@ 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