2019-04-08 22:22:52 +03:00
|
|
|
{ config, stdenv, fetchFromGitHub
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, intltool
|
|
|
|
, pkgconfig
|
|
|
|
, jansson
|
2014-10-02 23:55:50 +04:00
|
|
|
# deadbeef can use either gtk2 or gtk3
|
2016-03-03 14:10:48 +03:00
|
|
|
, gtk2Support ? false, gtk2 ? null
|
2018-02-25 05:23:58 +03:00
|
|
|
, gtk3Support ? true, gtk3 ? null, gsettings-desktop-schemas ? null, wrapGAppsHook ? null
|
2014-09-14 00:06:28 +04:00
|
|
|
# input plugins
|
|
|
|
, vorbisSupport ? true, libvorbis ? null
|
|
|
|
, mp123Support ? true, libmad ? null
|
|
|
|
, flacSupport ? true, flac ? null
|
|
|
|
, wavSupport ? true, libsndfile ? null
|
|
|
|
, cdaSupport ? true, libcdio ? null, libcddb ? null
|
|
|
|
, aacSupport ? true, faad2 ? null
|
2019-04-08 22:22:52 +03:00
|
|
|
, opusSupport ? true, opusfile ? null
|
2014-09-14 00:06:28 +04:00
|
|
|
, wavpackSupport ? false, wavpack ? null
|
2020-06-07 15:39:09 +03:00
|
|
|
, ffmpegSupport ? false, ffmpeg_3 ? null
|
2016-01-31 12:12:16 +03:00
|
|
|
, apeSupport ? true, yasm ? null
|
2014-09-14 00:06:28 +04:00
|
|
|
# misc plugins
|
|
|
|
, zipSupport ? true, libzip ? null
|
|
|
|
, artworkSupport ? true, imlib2 ? null
|
|
|
|
, hotkeysSupport ? true, libX11 ? null
|
|
|
|
, osdSupport ? true, dbus ? null
|
|
|
|
# output plugins
|
|
|
|
, alsaSupport ? true, alsaLib ? null
|
2019-02-03 18:31:27 +03:00
|
|
|
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
|
2014-09-14 00:06:28 +04:00
|
|
|
# effect plugins
|
|
|
|
, resamplerSupport ? true, libsamplerate ? null
|
|
|
|
, overloadSupport ? true, zlib ? null
|
|
|
|
# transports
|
|
|
|
, remoteSupport ? true, curl ? null
|
|
|
|
}:
|
|
|
|
|
2014-10-02 23:55:50 +04:00
|
|
|
assert gtk2Support || gtk3Support;
|
|
|
|
assert gtk2Support -> gtk2 != null;
|
2018-02-25 05:23:58 +03:00
|
|
|
assert gtk3Support -> gtk3 != null && gsettings-desktop-schemas != null && wrapGAppsHook != null;
|
2014-09-14 00:06:28 +04:00
|
|
|
assert vorbisSupport -> libvorbis != null;
|
|
|
|
assert mp123Support -> libmad != null;
|
|
|
|
assert flacSupport -> flac != null;
|
|
|
|
assert wavSupport -> libsndfile != null;
|
|
|
|
assert cdaSupport -> (libcdio != null && libcddb != null);
|
|
|
|
assert aacSupport -> faad2 != null;
|
2019-04-08 22:22:52 +03:00
|
|
|
assert opusSupport -> opusfile != null;
|
2014-09-14 00:06:28 +04:00
|
|
|
assert zipSupport -> libzip != null;
|
2020-06-07 15:39:09 +03:00
|
|
|
assert ffmpegSupport -> ffmpeg_3 != null;
|
2016-01-31 12:12:16 +03:00
|
|
|
assert apeSupport -> yasm != null;
|
2014-09-14 00:06:28 +04:00
|
|
|
assert artworkSupport -> imlib2 != null;
|
|
|
|
assert hotkeysSupport -> libX11 != null;
|
|
|
|
assert osdSupport -> dbus != null;
|
|
|
|
assert alsaSupport -> alsaLib != null;
|
2015-05-27 22:42:15 +03:00
|
|
|
assert pulseSupport -> libpulseaudio != null;
|
2014-09-14 00:06:28 +04:00
|
|
|
assert resamplerSupport -> libsamplerate != null;
|
|
|
|
assert overloadSupport -> zlib != null;
|
|
|
|
assert wavpackSupport -> wavpack != null;
|
|
|
|
assert remoteSupport -> curl != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-08 22:22:52 +03:00
|
|
|
pname = "deadbeef";
|
2020-07-03 11:02:32 +03:00
|
|
|
version = "1.8.4";
|
2014-09-14 00:06:28 +04:00
|
|
|
|
2019-04-08 22:22:52 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DeaDBeeF-Player";
|
|
|
|
repo = "deadbeef";
|
|
|
|
rev = version;
|
2020-07-03 11:02:32 +03:00
|
|
|
sha256 = "161b0ll8v4cjgwwmk137hzvh0jidlkx56vjkpnr70f0x4jzv2nll";
|
2014-09-14 00:06:28 +04:00
|
|
|
};
|
|
|
|
|
2016-03-03 14:10:48 +03:00
|
|
|
buildInputs = with stdenv.lib; [ jansson ]
|
|
|
|
++ optional gtk2Support gtk2
|
2018-02-25 05:23:58 +03:00
|
|
|
++ optionals gtk3Support [ gtk3 gsettings-desktop-schemas ]
|
2014-09-14 00:06:28 +04:00
|
|
|
++ optional vorbisSupport libvorbis
|
|
|
|
++ optional mp123Support libmad
|
|
|
|
++ optional flacSupport flac
|
|
|
|
++ optional wavSupport libsndfile
|
2016-03-03 14:10:48 +03:00
|
|
|
++ optionals cdaSupport [ libcdio libcddb ]
|
2014-09-14 00:06:28 +04:00
|
|
|
++ optional aacSupport faad2
|
2019-04-08 22:22:52 +03:00
|
|
|
++ optional opusSupport opusfile
|
2014-09-14 00:06:28 +04:00
|
|
|
++ optional zipSupport libzip
|
2020-06-07 15:39:09 +03:00
|
|
|
++ optional ffmpegSupport ffmpeg_3
|
2016-01-31 12:12:16 +03:00
|
|
|
++ optional apeSupport yasm
|
2014-09-14 00:06:28 +04:00
|
|
|
++ optional artworkSupport imlib2
|
|
|
|
++ optional hotkeysSupport libX11
|
|
|
|
++ optional osdSupport dbus
|
|
|
|
++ optional alsaSupport alsaLib
|
2015-05-27 22:42:15 +03:00
|
|
|
++ optional pulseSupport libpulseaudio
|
2014-09-14 00:06:28 +04:00
|
|
|
++ optional resamplerSupport libsamplerate
|
|
|
|
++ optional overloadSupport zlib
|
|
|
|
++ optional wavpackSupport wavpack
|
|
|
|
++ optional remoteSupport curl
|
|
|
|
;
|
|
|
|
|
2019-04-08 22:22:52 +03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
] ++ stdenv.lib.optional gtk3Support wrapGAppsHook;
|
2014-09-14 00:06:28 +04:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-04-08 22:22:52 +03:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2014-09-14 00:06:28 +04:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Ultimate Music Player for GNU/Linux";
|
2020-03-29 18:08:22 +03:00
|
|
|
homepage = "http://deadbeef.sourceforge.net/";
|
2014-09-14 00:06:28 +04:00
|
|
|
license = licenses.gpl2;
|
2018-03-09 16:22:08 +03:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2014-09-14 00:06:28 +04:00
|
|
|
maintainers = [ maintainers.abbradar ];
|
2016-04-30 02:58:00 +03:00
|
|
|
repositories.git = "https://github.com/Alexey-Yakovenko/deadbeef";
|
2014-09-14 00:06:28 +04:00
|
|
|
};
|
|
|
|
}
|