2013-06-20 14:22:11 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gtk3, libmowgli, libmcs
|
2010-04-16 21:26:15 +02:00
|
|
|
, 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
|
2013-06-20 14:22:11 +02:00
|
|
|
version = "3.3.4";
|
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";
|
2013-06-20 14:22:11 +02:00
|
|
|
sha256 = "19zw4yj8g4fvxkv0ql8v8vgxzldxl1fzig239zzv88mpnvwxn737";
|
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";
|
2013-06-20 14:22:11 +02:00
|
|
|
sha256 = "1l5g0zq73qp1hlrf4xsaj0n3hg0asrp7169531jgpncjn15dhvdn";
|
2010-04-16 21:26:15 +02:00
|
|
|
};
|
2012-02-26 23:47:28 +01:00
|
|
|
|
2010-04-16 21:26:15 +02:00
|
|
|
buildInputs =
|
2013-06-20 14:22:11 +02:00
|
|
|
[ gettext pkgconfig glib gtk3 libmowgli libmcs libxml2 dbus_glib
|
2010-04-16 21:26:15 +02:00
|
|
|
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.
|
|
|
|
(
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs="$out $nativeBuildInputs" # to find audacious
|
2010-04-16 21:26:15 +02:00
|
|
|
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 = {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "Audio player";
|
2010-04-16 21:26:15 +02:00
|
|
|
homepage = http://audacious-media-player.org/;
|
2013-06-20 14:22:11 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ eelco simons ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-04-16 21:26:15 +02:00
|
|
|
};
|
|
|
|
}
|