2020-07-16 10:36:06 +01:00
|
|
|
{
|
|
|
|
mkDerivation, lib, fetchurl, fetchpatch,
|
2021-01-19 06:50:56 +00:00
|
|
|
gettext, pkg-config,
|
2020-07-16 10:36:06 +01:00
|
|
|
qtbase,
|
|
|
|
alsaLib, curl, faad2, ffmpeg, flac, fluidsynth, gdk-pixbuf, lame, libbs2b,
|
|
|
|
libcddb, libcdio, libcdio-paranoia, libcue, libjack2, libmad, libmms, libmodplug,
|
|
|
|
libmowgli, libnotify, libogg, libpulseaudio, libsamplerate, libsidplayfp,
|
|
|
|
libsndfile, libvorbis, libxml2, lirc, mpg123, neon, qtmultimedia, soxr,
|
|
|
|
wavpack, openmpt123
|
2010-04-16 20:26:15 +01:00
|
|
|
}:
|
|
|
|
|
2020-07-16 10:36:06 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "audacious";
|
2020-07-16 10:36:06 +01:00
|
|
|
version = "4.0.5";
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2010-04-16 20:26:15 +01:00
|
|
|
src = fetchurl {
|
2020-07-16 10:36:06 +01:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
|
|
|
sha256 = "028zjgz0p7ys15lk2a30m5zcv9xrx3ga50wjsh4m4zxilgkakbji";
|
2010-04-16 20:26:15 +01:00
|
|
|
};
|
|
|
|
pluginsSrc = fetchurl {
|
2020-07-16 10:36:06 +01:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
|
|
|
|
sha256 = "0ny5w1agr9jaz5w3wyyxf1ygmzmd1sivaf97lcm4z4w6529520lz";
|
2010-04-16 20:26:15 +01:00
|
|
|
};
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ gettext pkg-config ];
|
2016-08-05 09:28:04 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-07-16 10:36:06 +01:00
|
|
|
# Core dependencies
|
|
|
|
qtbase
|
2010-04-16 20:26:15 +01:00
|
|
|
|
2020-07-16 10:36:06 +01:00
|
|
|
# Plugin dependencies
|
|
|
|
alsaLib curl faad2 ffmpeg flac fluidsynth gdk-pixbuf lame libbs2b libcddb
|
|
|
|
libcdio libcdio-paranoia libcue libjack2 libmad libmms libmodplug libmowgli
|
|
|
|
libnotify libogg libpulseaudio libsamplerate libsidplayfp libsndfile
|
|
|
|
libvorbis libxml2 lirc mpg123 neon qtmultimedia soxr wavpack
|
|
|
|
openmpt123
|
|
|
|
];
|
2016-08-05 09:28:04 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
)
|
|
|
|
# Then build the plugins.
|
|
|
|
(
|
|
|
|
nativeBuildInputs="$out $nativeBuildInputs" # to find audacious
|
|
|
|
source $stdenv/setup
|
|
|
|
rm -rfv audacious-*
|
|
|
|
src=$pluginsSrc
|
|
|
|
genericBuild
|
|
|
|
)
|
|
|
|
'';
|
2010-04-16 20:26:15 +01:00
|
|
|
|
2020-07-16 10:36:06 +01:00
|
|
|
meta = with lib; {
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "Audio player";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://audacious-media-player.org/";
|
2020-07-16 10:36:06 +01:00
|
|
|
maintainers = with maintainers; [ eelco ramkromberg ttuegel ];
|
2016-08-05 09:28:04 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|