nixpkgs/pkgs/applications/audio/audacious/plugins.nix
2024-04-22 12:32:29 -07:00

121 lines
1.7 KiB
Nix

{ stdenv
, fetchurl
, alsa-lib
, audacious
, curl
, faad2
, ffmpeg
, flac
, fluidsynth
, gdk-pixbuf
, gettext
, lame
, libbs2b
, libcddb
, libcdio
, libcdio-paranoia
, libcue
, libjack2
, libmad
, libmms
, libmodplug
, libmowgli
, libnotify
, libogg
, libopenmpt
, libpulseaudio
, libsamplerate
, libsidplayfp
, libsndfile
, libvorbis
, libxml2
, lirc
, meson
, mpg123
, neon
, ninja
, pkg-config
, opusfile
, pipewire
, qtbase
, qtmultimedia
, qtx11extras
, soxr
, vgmstream
, wavpack
}:
stdenv.mkDerivation rec {
pname = "audacious-plugins";
version = "4.3.1";
src = fetchurl {
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
sha256 = "sha256-Leom469YOi1oTfJAsnsrKTK81lPfTbUAqF9P5dX9yKY=";
};
patches = [ ./0001-Set-plugindir-to-PREFIX-lib-audacious.patch ];
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
];
buildInputs = [
audacious
alsa-lib
curl
faad2
ffmpeg
flac
fluidsynth
gdk-pixbuf
lame
libbs2b
libcddb
libcdio
libcdio-paranoia
libcue
libjack2
libmad
libmms
libmodplug
libmowgli
libnotify
libogg
libpulseaudio
libsamplerate
libsidplayfp
libsndfile
libvorbis
libxml2
lirc
mpg123
neon
opusfile
pipewire
qtbase
qtmultimedia
qtx11extras
soxr
wavpack
libopenmpt
];
mesonFlags = [
"-Dgtk=false"
];
dontWrapQtApps = true;
postInstall = ''
ln -s ${vgmstream.override { buildAudaciousPlugin = true; }}/lib/audacious/Input/* $out/lib/audacious/Input
'';
meta = audacious.meta // {
description = "Plugins for Audacious music player";
};
}