2016-08-05 11:28:04 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wrapGAppsHook, gettext, glib, gtk3
|
2018-02-25 05:23:58 +03:00
|
|
|
, libmowgli, dbus-glib, libxml2, xorg, gnome3, alsaLib
|
2016-08-05 11:28:04 +03:00
|
|
|
, libpulseaudio, libjack2, fluidsynth, libmad, libogg, libvorbis
|
2018-02-24 19:12:17 +03:00
|
|
|
, libcdio, libcddb, flac, ffmpeg, mpg123, libcue, libmms, libbs2b
|
2016-08-05 11:28:04 +03:00
|
|
|
, libsndfile, libmodplug, libsamplerate, soxr, lirc, curl, wavpack
|
|
|
|
, neon, faad2, lame, libnotify, libsidplayfp
|
2010-04-16 23:26:15 +04:00
|
|
|
}:
|
|
|
|
|
2016-08-05 11:28:04 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "audacious";
|
2017-12-31 18:51:47 +03:00
|
|
|
version = "3.9";
|
2012-02-27 02:47:28 +04:00
|
|
|
|
2010-04-16 23:26:15 +04:00
|
|
|
src = fetchurl {
|
2018-06-28 21:43:35 +03:00
|
|
|
url = "https://distfiles.audacious-media-player.org/audacious-${version}-gtk3.tar.bz2";
|
2017-12-31 18:51:47 +03:00
|
|
|
sha256 = "0dc7fg0v2l2j4h9cz1baz7rf4n0a5jgk09qvsj806sh6jp7w6ipm";
|
2010-04-16 23:26:15 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
pluginsSrc = fetchurl {
|
2016-08-05 11:28:04 +03:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}-gtk3.tar.bz2";
|
2017-12-31 18:51:47 +03:00
|
|
|
sha256 = "1gck37c5pnzxdhrnb1g75b5hi31s2dc952wifxns45pkdlayrmra";
|
2010-04-16 23:26:15 +04:00
|
|
|
};
|
2012-02-27 02:47:28 +04:00
|
|
|
|
2016-08-05 11:28:04 +03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-02-25 05:23:58 +03:00
|
|
|
gettext glib gtk3 libmowgli dbus-glib libxml2
|
2019-02-14 00:47:50 +03:00
|
|
|
xorg.libXcomposite gnome3.adwaita-icon-theme alsaLib libjack2
|
2018-02-24 19:12:17 +03:00
|
|
|
libpulseaudio fluidsynth libmad libogg libvorbis libcdio
|
2016-08-05 11:28:04 +03:00
|
|
|
libcddb flac ffmpeg mpg123 libcue libmms libbs2b libsndfile
|
|
|
|
libmodplug libsamplerate soxr lirc curl wavpack neon faad2
|
|
|
|
lame libnotify libsidplayfp
|
|
|
|
];
|
2010-04-16 23:26:15 +04:00
|
|
|
|
2016-08-05 11:28:04 +03:00
|
|
|
configureFlags = [ "--enable-statusicon" ];
|
|
|
|
|
|
|
|
# Here we build both audacious and audacious-plugins in one
|
2010-04-16 23:26:15 +04:00
|
|
|
# derivations, since they really expect to be in the same prefix.
|
|
|
|
# This is slighly tricky.
|
2016-08-05 11:28:04 +03:00
|
|
|
builder = builtins.toFile "builder.sh" ''
|
|
|
|
# First build audacious.
|
|
|
|
(
|
|
|
|
source $stdenv/setup
|
|
|
|
genericBuild
|
|
|
|
)
|
2013-10-04 23:02:17 +04:00
|
|
|
|
2016-08-05 11:28:04 +03:00
|
|
|
# Then build the plugins.
|
|
|
|
(
|
|
|
|
dontWrapGApps=true
|
|
|
|
nativeBuildInputs="$out $nativeBuildInputs" # to find audacious
|
|
|
|
source $stdenv/setup
|
|
|
|
rm -rfv audacious-*
|
|
|
|
src=$pluginsSrc
|
|
|
|
genericBuild
|
|
|
|
)
|
|
|
|
'';
|
2010-04-16 23:26:15 +04:00
|
|
|
|
2011-07-26 06:14:19 +04:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-05 11:28:04 +03:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-05 18:22:46 +04:00
|
|
|
description = "Audio player";
|
2018-03-25 08:04:25 +03:00
|
|
|
homepage = https://audacious-media-player.org/;
|
2016-08-05 11:28:04 +03:00
|
|
|
maintainers = with maintainers; [ eelco ramkromberg ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
license = with licenses; [
|
|
|
|
bsd2 bsd3 #https://github.com/audacious-media-player/audacious/blob/master/COPYING
|
|
|
|
gpl2 gpl3 lgpl2Plus #http://redmine.audacious-media-player.org/issues/46
|
|
|
|
];
|
2010-04-16 23:26:15 +04:00
|
|
|
};
|
|
|
|
}
|