2016-08-05 09:28:04 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wrapGAppsHook, gettext, glib, gtk3
|
|
|
|
, libmowgli, libmcs, dbus_glib, libxml2, xorg, gnome3, alsaLib
|
|
|
|
, libpulseaudio, libjack2, fluidsynth, libmad, libogg, libvorbis
|
|
|
|
, libcdio082, libcddb, flac, ffmpeg, mpg123, libcue, libmms, libbs2b
|
|
|
|
, libsndfile, libmodplug, libsamplerate, soxr, lirc, curl, wavpack
|
|
|
|
, neon, faad2, lame, libnotify, libsidplayfp
|
2010-04-16 20:26:15 +01:00
|
|
|
}:
|
|
|
|
|
2016-08-05 09:28:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-02-26 22:47:28 +00:00
|
|
|
name = "audacious-${version}";
|
2017-02-11 17:18:27 +00:00
|
|
|
version = "3.8.2";
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2010-04-16 20:26:15 +01:00
|
|
|
src = fetchurl {
|
2016-08-05 09:28:04 +01:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}-gtk3.tar.bz2";
|
2017-02-11 17:18:27 +00:00
|
|
|
sha256 = "1g08xprc9q0lyw3knq723j7xr7i15f8v1x1j3k5wvi8jv21bvijf";
|
2010-04-16 20:26:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pluginsSrc = fetchurl {
|
2016-08-05 09:28:04 +01:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}-gtk3.tar.bz2";
|
2017-02-11 17:18:27 +00:00
|
|
|
sha256 = "1vqcxwqinlwb2l0kkrarg33sw1brjzrnq5jbhzrql6z6x95h4jbq";
|
2010-04-16 20:26:15 +01:00
|
|
|
};
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2016-08-05 09:28:04 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gettext glib gtk3 libmowgli libmcs dbus_glib libxml2
|
|
|
|
xorg.libXcomposite gnome3.defaultIconTheme alsaLib libjack2
|
|
|
|
libpulseaudio fluidsynth libmad libogg libvorbis libcdio082
|
|
|
|
libcddb flac ffmpeg mpg123 libcue libmms libbs2b libsndfile
|
|
|
|
libmodplug libsamplerate soxr lirc curl wavpack neon faad2
|
|
|
|
lame libnotify libsidplayfp
|
|
|
|
];
|
2010-04-16 20:26:15 +01:00
|
|
|
|
2016-08-05 09:28:04 +01:00
|
|
|
configureFlags = [ "--enable-statusicon" ];
|
|
|
|
|
|
|
|
# Here we build both audacious and audacious-plugins in one
|
2010-04-16 20:26:15 +01:00
|
|
|
# derivations, since they really expect to be in the same prefix.
|
|
|
|
# This is slighly tricky.
|
2016-08-05 09:28:04 +01:00
|
|
|
builder = builtins.toFile "builder.sh" ''
|
|
|
|
# First build audacious.
|
|
|
|
(
|
|
|
|
source $stdenv/setup
|
|
|
|
genericBuild
|
|
|
|
)
|
2013-10-04 20:02:17 +01:00
|
|
|
|
2016-08-05 09:28:04 +01: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 20:26:15 +01:00
|
|
|
|
2011-07-26 03:14:19 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-05 09:28:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "Audio player";
|
2010-04-16 20:26:15 +01:00
|
|
|
homepage = http://audacious-media-player.org/;
|
2016-08-05 09:28:04 +01: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 20:26:15 +01:00
|
|
|
};
|
|
|
|
}
|