From 48484b56c78ce70e94bfad2efa56c8a94017d3df Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 8 Sep 2026 14:28:21 +0200 Subject: [PATCH] tuxpaint: fix build w/ glibc-2.44 Failing Hydra build: https://hydra.nixos.org/build/344213768 While the same patch is also upstream[1], I didn't really get how to extract .patch files from sourceforge, so I used the Gentoo vendored patch instead, contents are the same. [1] https://sourceforge.net/p/tuxpaint/tuxpaint/ci/6271edececef2a3720e5a5b4e245407cf909f034/ --- pkgs/by-name/tu/tuxpaint/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/tu/tuxpaint/package.nix b/pkgs/by-name/tu/tuxpaint/package.nix index 3152be909715..5e81c3583ef4 100644 --- a/pkgs/by-name/tu/tuxpaint/package.nix +++ b/pkgs/by-name/tu/tuxpaint/package.nix @@ -23,6 +23,7 @@ SDL2_Pango, SDL2_ttf, netpbm, + fetchpatch, }: let @@ -50,6 +51,15 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; + patches = [ + # Fix build w/ glibc-2.44 + # https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51c28b814990551897631be7a222af2d922030a9 + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/tuxpaint/files/tuxpaint-0.9.35-glibc-2.43.patch?id=51c28b814990551897631be7a222af2d922030a9"; + hash = "sha256-xkV73GoCd/epeyWfLHq2MNmRNfKaledoFsukwVKiZSI="; + }) + ]; + nativeBuildInputs = [ gettext gperf