2010-04-16 21:26:15 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gtk, libmowgli, libmcs
|
|
|
|
, gettext, dbus_glib, libxml2, libmad, xlibs, alsaLib, libogg
|
2010-04-16 22:19:22 +02:00
|
|
|
, libvorbis, libcdio, libcddb, flac, ffmpeg
|
2010-04-16 21:26:15 +02:00
|
|
|
}:
|
|
|
|
|
2012-02-26 23:47:28 +01:00
|
|
|
let
|
2012-05-20 05:23:31 +02:00
|
|
|
version = "3.2.2";
|
2012-02-26 23:47:28 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "audacious-${version}";
|
|
|
|
|
2010-04-16 21:26:15 +02:00
|
|
|
src = fetchurl {
|
2012-02-26 23:47:28 +01:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
2012-05-20 05:23:31 +02:00
|
|
|
sha256 = "1vj2f3jq67r9wc3s8p51w8338cjhidj3lpxmzyh31lrfikj21766";
|
2010-04-16 21:26:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
pluginsSrc = fetchurl {
|
2012-02-26 23:47:28 +01:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
|
2012-05-20 05:23:31 +02:00
|
|
|
sha256 = "1z5p4ny0kzszaki4f1fgrvcr0q1j6i19847jhplc07nl1rvycdy6";
|
2010-04-16 21:26:15 +02:00
|
|
|
};
|
2012-02-26 23:47:28 +01:00
|
|
|
|
2010-04-16 21:26:15 +02:00
|
|
|
# `--enable-amidiplug' is to prevent configure from looking in /proc/asound.
|
2011-07-26 04:14:19 +02:00
|
|
|
configureFlags = "--enable-amidiplug --disable-oss";
|
2012-02-26 23:47:28 +01:00
|
|
|
|
2010-04-16 21:26:15 +02:00
|
|
|
buildInputs =
|
|
|
|
[ gettext pkgconfig glib gtk libmowgli libmcs libxml2 dbus_glib
|
|
|
|
libmad xlibs.libXcomposite libogg libvorbis flac alsaLib libcdio
|
2010-04-16 22:19:22 +02:00
|
|
|
libcddb ffmpeg
|
2010-04-16 21:26:15 +02: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.
|
|
|
|
(
|
|
|
|
buildNativeInputs="$out $buildNativeInputs" # to find audacious
|
|
|
|
source $stdenv/setup
|
|
|
|
rm -rfv audacious-*
|
|
|
|
src=$pluginsSrc
|
|
|
|
genericBuild
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2011-07-26 04:14:19 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-04-16 21:26:15 +02:00
|
|
|
meta = {
|
|
|
|
description = "Audacious, a media player forked from the Beep Media Player, which was itself an XMMS fork";
|
|
|
|
homepage = http://audacious-media-player.org/;
|
2012-02-26 23:47:28 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco stdenv.lib.maintainers.simons ];
|
2010-04-16 21:26:15 +02:00
|
|
|
};
|
|
|
|
}
|