2020-07-18 16:06:22 +00:00
|
|
|
{
|
|
|
|
mkDerivation, lib, fetchurl, fetchpatch,
|
2021-02-05 17:12:51 +00:00
|
|
|
gettext, pkg-config,
|
2020-07-18 16:06:22 +00:00
|
|
|
qtbase,
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib, curl, faad2, ffmpeg, flac, fluidsynth, gdk-pixbuf, lame, libbs2b,
|
2020-07-18 16:06:22 +00:00
|
|
|
libcddb, libcdio, libcdio-paranoia, libcue, libjack2, libmad, libmms, libmodplug,
|
|
|
|
libmowgli, libnotify, libogg, libpulseaudio, libsamplerate, libsidplayfp,
|
|
|
|
libsndfile, libvorbis, libxml2, lirc, mpg123, neon, qtmultimedia, soxr,
|
2021-09-18 10:52:07 +00:00
|
|
|
wavpack, libopenmpt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "audacious";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-07-18 16:06:22 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-/rME5HCkgf4rPEyhycs7I+wmJUDBLQ0ebCKl62JeBLM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
pluginsSrc = fetchurl {
|
2020-07-18 16:06:22 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-b6D2nDoQQeuHfDcQlROrSioKVqd9nowToVgc8UOaQX8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ gettext pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-07-18 16:06:22 +00:00
|
|
|
# Core dependencies
|
|
|
|
qtbase
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
# Plugin dependencies
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib curl faad2 ffmpeg flac fluidsynth gdk-pixbuf lame libbs2b libcddb
|
2020-07-18 16:06:22 +00:00
|
|
|
libcdio libcdio-paranoia libcue libjack2 libmad libmms libmodplug libmowgli
|
|
|
|
libnotify libogg libpulseaudio libsamplerate libsidplayfp libsndfile
|
|
|
|
libvorbis libxml2 lirc mpg123 neon qtmultimedia soxr wavpack
|
2021-09-18 10:52:07 +00:00
|
|
|
libopenmpt
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
configureFlags = [ "--disable-gtk" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Here we build both audacious and audacious-plugins in one
|
2021-12-06 16:07:01 +00:00
|
|
|
# derivation, since they really expect to be in the same prefix.
|
2020-04-24 23:36:52 +00:00
|
|
|
# This is slighly tricky.
|
|
|
|
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
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Audio player";
|
|
|
|
homepage = "https://audacious-media-player.org/";
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ eelco ramkromberg ttuegel ];
|
2020-04-24 23:36:52 +00: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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|