From 30560595b9e95e673f77633806d844c633dcacf5 Mon Sep 17 00:00:00 2001 From: Xiangyan Sun Date: Mon, 4 May 2026 14:35:45 -0700 Subject: [PATCH] mpd-touch-screen-gui: fix build with gcc15 Co-Authored-By: Doron Behar --- pkgs/by-name/mp/mpd-touch-screen-gui/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/mp/mpd-touch-screen-gui/package.nix b/pkgs/by-name/mp/mpd-touch-screen-gui/package.nix index 174a16c81602..b921ddd91ac3 100644 --- a/pkgs/by-name/mp/mpd-touch-screen-gui/package.nix +++ b/pkgs/by-name/mp/mpd-touch-screen-gui/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, pkg-config, autoreconfHook, SDL2, @@ -25,6 +26,13 @@ stdenv.mkDerivation (finalAttrs: { rev = "156eaebede89da2b83a98d8f9dfa46af12282fb4"; sha256 = "sha256-vr/St4BghrndjUQ0nZI/uJq+F/MjEj6ulc4DYwQ/pgU="; }; + patches = [ + # Fixes build with gcc15. See: https://github.com/muesli4/mpd-touch-screen-gui/pull/15 + (fetchpatch { + url = "https://github.com/muesli4/mpd-touch-screen-gui/pull/15/commits/ecbe6fe2d7e30b81584e1f15e3003e0dba013f24.patch"; + hash = "sha256-p4TywZl7SQrMsKGEZgcctTY5DgnIWddQSFadVpyCbTU="; + }) + ]; nativeBuildInputs = [ pkg-config