From 585063e202eac73267bc415d5f74a5b05e7c3cf9 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 22 May 2026 19:40:07 +0700 Subject: [PATCH] libtapi: fix build with gcc 15 --- pkgs/by-name/li/libtapi/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/li/libtapi/package.nix b/pkgs/by-name/li/libtapi/package.nix index 7cc4d917ad7f..81de7f9854c4 100644 --- a/pkgs/by-name/li/libtapi/package.nix +++ b/pkgs/by-name/li/libtapi/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, cmake, ninja, python3, @@ -57,6 +58,11 @@ stdenv.mkDerivation (finalAttrs: { ./0001-Check-for-no_exported_symbols-linker-support.patch # Fix build on Linux. GCC is more picky than clang about the field order. ./0003-Match-designator-order-with-declaration-order.patch + # Add missing include for gcc 15. + (fetchpatch2 { + url = "https://github.com/llvm/llvm-project/commit/e2f25af711425fb238317582441f4bda56131891.patch?full_index=1"; + hash = "sha256-zJwl4aeX71UR7a8XHpKl4atbw+hEGCHOQmiFLIJirTY="; + }) ]; postPatch = ''