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