From e362fcd197f76d6a7ee04ae5823b29ea8ef9909c Mon Sep 17 00:00:00 2001 From: whispers Date: Thu, 9 Jul 2026 11:10:21 -0400 Subject: [PATCH] kodi: fix build with giflib 6 TexturePacker has some conditionals on GIFLIB 5, which break with GIFLIB 6. This has been extended to support all versions >= 5 upstream, but has not yet made it into a release. Upstream PR: https://github.com/xbmc/xbmc/pull/28016 --- pkgs/applications/video/kodi/unwrapped.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/applications/video/kodi/unwrapped.nix b/pkgs/applications/video/kodi/unwrapped.nix index 7f21512e4bba..cfde2de5ebf7 100644 --- a/pkgs/applications/video/kodi/unwrapped.nix +++ b/pkgs/applications/video/kodi/unwrapped.nix @@ -2,6 +2,7 @@ stdenv, lib, fetchFromGitHub, + fetchpatch, fetchzip, autoconf, automake, @@ -254,6 +255,18 @@ stdenv.mkDerivation ( hash = "sha256-36wBAqGEDCRZ4t1ygTg03Pyk7Gg9quUTUGD3SBp6nCk="; }; + patches = [ + # TexturePacker has some conditionals on GIFLIB 5, which break with + # GIFLIB 6. This has been extended to support all versions >= 5 upstream, + # but has not yet made it into a release. + # https://github.com/xbmc/xbmc/pull/28016 + (fetchpatch { + name = "texturepacker-giflib-6.patch"; + url = "https://github.com/xbmc/xbmc/commit/29492cbd20d4c90a9c00a30ab525d4d0e81a968b.patch"; + hash = "sha256-WNaODPCtRfn30jVU5HbBnAO2Vl/MQp2CYmKOTTyDGZI="; + }) + ]; + # make derivations declared in the let binding available here, so # they can be overridden inherit