2013-06-20 12:22:11 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gtk3, libmowgli, libmcs
|
2015-09-15 09:26:18 +00:00
|
|
|
, gettext, dbus_glib, libxml2, libmad, xorg, alsaLib, libogg
|
2013-10-04 19:02:17 +00:00
|
|
|
, libvorbis, libcdio, libcddb, flac, ffmpeg, makeWrapper
|
2016-05-06 06:53:40 +00:00
|
|
|
, mpg123, neon, faad2, gnome3
|
2010-04-16 19:26:15 +00:00
|
|
|
}:
|
|
|
|
|
2014-12-18 12:43:36 +00:00
|
|
|
let version = "3.5.2"; in
|
|
|
|
|
2012-02-26 22:47:28 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "audacious-${version}";
|
|
|
|
|
2010-04-16 19:26:15 +00:00
|
|
|
src = fetchurl {
|
2012-02-26 22:47:28 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
2014-12-18 12:43:36 +00:00
|
|
|
sha256 = "0mhrdj76h0g6q197wgp8rxk6gqsrirrw49hfidcb5b7q5rlvj59r";
|
2010-04-16 19:26:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pluginsSrc = fetchurl {
|
2012-02-26 22:47:28 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
|
2014-12-18 12:43:36 +00:00
|
|
|
sha256 = "1nacd8n46q3pqnwavq3i2ayls609gvxfcp3qqpcsfcdfz3bh15hp";
|
2010-04-16 19:26:15 +00:00
|
|
|
};
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2010-04-16 19:26:15 +00:00
|
|
|
buildInputs =
|
2013-06-20 12:22:11 +00:00
|
|
|
[ gettext pkgconfig glib gtk3 libmowgli libmcs libxml2 dbus_glib
|
2015-09-15 09:26:18 +00:00
|
|
|
libmad xorg.libXcomposite libogg libvorbis flac alsaLib libcdio
|
2016-05-06 06:53:40 +00:00
|
|
|
libcddb ffmpeg makeWrapper mpg123 neon faad2 gnome3.defaultIconTheme
|
2010-04-16 19:26:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Here we build bouth audacious and audacious-plugins in one
|
|
|
|
# derivations, since they really expect to be in the same prefix.
|
|
|
|
# This is slighly tricky.
|
|
|
|
builder = builtins.toFile "builder.sh"
|
|
|
|
''
|
|
|
|
# First build audacious.
|
|
|
|
(
|
|
|
|
source $stdenv/setup
|
|
|
|
genericBuild
|
|
|
|
)
|
|
|
|
|
|
|
|
# Then build the plugins.
|
|
|
|
(
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs="$out $nativeBuildInputs" # to find audacious
|
2010-04-16 19:26:15 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
rm -rfv audacious-*
|
|
|
|
src=$pluginsSrc
|
|
|
|
genericBuild
|
|
|
|
)
|
2013-10-04 19:02:17 +00:00
|
|
|
|
|
|
|
(
|
|
|
|
source $stdenv/setup
|
|
|
|
# gsettings schemas for file dialogues
|
2016-05-06 06:53:40 +00:00
|
|
|
# XDG_ICON_DIRS is set by hook for gnome3.defaultIconTheme
|
2014-01-13 15:28:05 +00:00
|
|
|
for file in "$out/bin/"*; do
|
2016-05-06 06:53:40 +00:00
|
|
|
wrapProgram "$file" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ADD:$GSETTINGS_SCHEMAS_PATH" \
|
|
|
|
--suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
|
2013-10-04 19:02:17 +00:00
|
|
|
done
|
|
|
|
)
|
2010-04-16 19:26:15 +00:00
|
|
|
'';
|
2013-10-04 19:02:17 +00:00
|
|
|
XDG_ADD = gtk3 + "/share";
|
2010-04-16 19:26:15 +00:00
|
|
|
|
2011-07-26 02:14:19 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-04-16 19:26:15 +00:00
|
|
|
meta = {
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Audio player";
|
2010-04-16 19:26:15 +00:00
|
|
|
homepage = http://audacious-media-player.org/;
|
2016-05-16 20:30:20 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ eelco ];
|
2013-06-20 12:22:11 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-04-16 19:26:15 +00:00
|
|
|
};
|
|
|
|
}
|