2013-06-20 13:22:11 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gtk3, libmowgli, libmcs
|
2010-04-16 20:26:15 +01:00
|
|
|
, gettext, dbus_glib, libxml2, libmad, xlibs, alsaLib, libogg
|
2013-10-04 20:02:17 +01:00
|
|
|
, libvorbis, libcdio, libcddb, flac, ffmpeg, makeWrapper
|
2010-04-16 20:26:15 +01:00
|
|
|
}:
|
|
|
|
|
2012-02-26 22:47:28 +00:00
|
|
|
let
|
2014-01-13 15:28:05 +00:00
|
|
|
version = "3.4.3";
|
2012-02-26 22:47:28 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "audacious-${version}";
|
|
|
|
|
2010-04-16 20:26:15 +01:00
|
|
|
src = fetchurl {
|
2012-02-26 22:47:28 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
2014-01-13 15:28:05 +00:00
|
|
|
sha256 = "04lzwdr1lx6ghbfxzygvnbmdl420w6rm453ds5lyb0hlvzs58d0q";
|
2010-04-16 20:26:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pluginsSrc = fetchurl {
|
2012-02-26 22:47:28 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
|
2014-01-13 15:28:05 +00:00
|
|
|
sha256 = "00r88q9fs9a0gicdmk2svcans7igcqgacrw303a5bn44is7pmrmy";
|
2010-04-16 20:26:15 +01:00
|
|
|
};
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2010-04-16 20:26:15 +01:00
|
|
|
buildInputs =
|
2013-06-20 13:22:11 +01:00
|
|
|
[ gettext pkgconfig glib gtk3 libmowgli libmcs libxml2 dbus_glib
|
2010-04-16 20:26:15 +01:00
|
|
|
libmad xlibs.libXcomposite libogg libvorbis flac alsaLib libcdio
|
2013-10-04 20:02:17 +01:00
|
|
|
libcddb ffmpeg makeWrapper
|
2010-04-16 20:26:15 +01: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 20:26:15 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
rm -rfv audacious-*
|
|
|
|
src=$pluginsSrc
|
|
|
|
genericBuild
|
|
|
|
)
|
2013-10-04 20:02:17 +01:00
|
|
|
|
|
|
|
(
|
|
|
|
source $stdenv/setup
|
|
|
|
# gsettings schemas for file dialogues
|
2014-01-13 15:28:05 +00:00
|
|
|
for file in "$out/bin/"*; do
|
2014-04-13 22:30:15 +01:00
|
|
|
wrapProgram "$file" --prefix XDG_DATA_DIRS : "$XDG_ADD:$GSETTINGS_SCHEMAS_PATH"
|
2013-10-04 20:02:17 +01:00
|
|
|
done
|
|
|
|
)
|
2010-04-16 20:26:15 +01:00
|
|
|
'';
|
2013-10-04 20:02:17 +01:00
|
|
|
XDG_ADD = gtk3 + "/share";
|
2010-04-16 20:26:15 +01:00
|
|
|
|
2011-07-26 03:14:19 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-04-16 20:26:15 +01:00
|
|
|
meta = {
|
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/;
|
2013-06-20 13:22:11 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ eelco simons ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-04-16 20:26:15 +01:00
|
|
|
};
|
|
|
|
}
|