diff --git a/pkgs/by-name/au/audacious-plugins/package.nix b/pkgs/by-name/au/audacious-plugins/package.nix index b954bcdef991..e46343068b56 100644 --- a/pkgs/by-name/au/audacious-plugins/package.nix +++ b/pkgs/by-name/au/audacious-plugins/package.nix @@ -1,6 +1,7 @@ { stdenv, fetchFromGitHub, + fetchpatch, alsa-lib, audacious-bare, curl, @@ -24,6 +25,7 @@ libogg, libopenmpt, libpulseaudio, + libresidfp, libsamplerate, libsidplayfp, libsndfile, @@ -54,7 +56,21 @@ stdenv.mkDerivation rec { hash = "sha256-HfO59DOIYsEpBzUyaLYh/gXfz+zvH8lIY2yBVCn3wks="; }; - patches = [ ./0001-Set-plugindir-to-PREFIX-lib-audacious.patch ]; + patches = [ + ./0001-Set-plugindir-to-PREFIX-lib-audacious.patch + + # Remove when version >= 4.6 + (fetchpatch { + name = "0001-audacious-plugins-sid-Use-new-sidplayfp-API.patch"; + url = "https://github.com/audacious-media-player/audacious-plugins/commit/42c05763a136d6523d611473ff3701e2d9e30bec.patch"; + hash = "sha256-bTC9nZFNwyo4PsGrLyDiQJDOrHTUDHUQaxEFe/wFPME="; + }) + (fetchpatch { + name = "0002-audacious-plugins-sid-Support-version-3.0-of-libsidplayfp-version.patch"; + url = "https://github.com/audacious-media-player/audacious-plugins/commit/2aaf45bd3840858e23b75d5863129a510299abd6.patch"; + hash = "sha256-FbGLd3aiKeoJXKgTMIdI/oBEx5EzcqyhL0jWhG6Fyfw="; + }) + ]; nativeBuildInputs = [ meson @@ -85,6 +101,7 @@ stdenv.mkDerivation rec { libnotify libogg libpulseaudio + libresidfp libsamplerate libsidplayfp libsndfile