2016-03-03 11:10:48 +00:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, fetchpatch, jansson
|
2014-10-02 20:55:50 +01:00
|
|
|
# deadbeef can use either gtk2 or gtk3
|
2016-03-03 11:10:48 +00:00
|
|
|
, gtk2Support ? false, gtk2 ? null
|
2018-02-25 02:23:58 +00:00
|
|
|
, gtk3Support ? true, gtk3 ? null, gsettings-desktop-schemas ? null, wrapGAppsHook ? null
|
2014-09-13 21:06:28 +01: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
|
2015-12-01 17:04:04 +00:00
|
|
|
, midiSupport ? false, wildmidi ? null
|
2014-09-13 21:06:28 +01:00
|
|
|
, wavpackSupport ? false, wavpack ? null
|
|
|
|
, ffmpegSupport ? false, ffmpeg ? null
|
2016-01-31 09:12:16 +00:00
|
|
|
, apeSupport ? true, yasm ? null
|
2014-09-13 21:06:28 +01: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
|
2015-05-27 20:42:15 +01:00
|
|
|
, pulseSupport ? true, libpulseaudio ? null
|
2014-09-13 21:06:28 +01:00
|
|
|
# effect plugins
|
|
|
|
, resamplerSupport ? true, libsamplerate ? null
|
|
|
|
, overloadSupport ? true, zlib ? null
|
|
|
|
# transports
|
|
|
|
, remoteSupport ? true, curl ? null
|
|
|
|
}:
|
|
|
|
|
2014-10-02 20:55:50 +01:00
|
|
|
assert gtk2Support || gtk3Support;
|
|
|
|
assert gtk2Support -> gtk2 != null;
|
2018-02-25 02:23:58 +00:00
|
|
|
assert gtk3Support -> gtk3 != null && gsettings-desktop-schemas != null && wrapGAppsHook != null;
|
2014-09-13 21:06:28 +01: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;
|
|
|
|
assert zipSupport -> libzip != null;
|
|
|
|
assert ffmpegSupport -> ffmpeg != null;
|
2016-01-31 09:12:16 +00:00
|
|
|
assert apeSupport -> yasm != null;
|
2014-09-13 21:06:28 +01:00
|
|
|
assert artworkSupport -> imlib2 != null;
|
|
|
|
assert hotkeysSupport -> libX11 != null;
|
|
|
|
assert osdSupport -> dbus != null;
|
|
|
|
assert alsaSupport -> alsaLib != null;
|
2015-05-27 20:42:15 +01:00
|
|
|
assert pulseSupport -> libpulseaudio != null;
|
2014-09-13 21:06:28 +01:00
|
|
|
assert resamplerSupport -> libsamplerate != null;
|
|
|
|
assert overloadSupport -> zlib != null;
|
2015-12-01 17:04:04 +00:00
|
|
|
assert midiSupport -> wildmidi != null;
|
2014-09-13 21:06:28 +01:00
|
|
|
assert wavpackSupport -> wavpack != null;
|
|
|
|
assert remoteSupport -> curl != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-03 11:10:48 +00:00
|
|
|
name = "deadbeef-${version}";
|
2016-04-30 00:58:11 +01:00
|
|
|
version = "0.7.2";
|
2014-09-13 21:06:28 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-16 23:17:53 +01:00
|
|
|
url = "mirror://sourceforge/project/deadbeef/${name}.tar.bz2";
|
2017-11-20 12:57:43 +00:00
|
|
|
sha256 = "1168hgr1nf27pf24n1rlfh1kx1wiscwhpbhqw0rprwy203gsnqwa";
|
2014-09-13 21:06:28 +01:00
|
|
|
};
|
|
|
|
|
2016-03-03 11:10:48 +00:00
|
|
|
buildInputs = with stdenv.lib; [ jansson ]
|
|
|
|
++ optional gtk2Support gtk2
|
2018-02-25 02:23:58 +00:00
|
|
|
++ optionals gtk3Support [ gtk3 gsettings-desktop-schemas ]
|
2014-09-13 21:06:28 +01:00
|
|
|
++ optional vorbisSupport libvorbis
|
|
|
|
++ optional mp123Support libmad
|
|
|
|
++ optional flacSupport flac
|
|
|
|
++ optional wavSupport libsndfile
|
2016-03-03 11:10:48 +00:00
|
|
|
++ optionals cdaSupport [ libcdio libcddb ]
|
2014-09-13 21:06:28 +01:00
|
|
|
++ optional aacSupport faad2
|
|
|
|
++ optional zipSupport libzip
|
|
|
|
++ optional ffmpegSupport ffmpeg
|
2016-01-31 09:12:16 +00:00
|
|
|
++ optional apeSupport yasm
|
2014-09-13 21:06:28 +01:00
|
|
|
++ optional artworkSupport imlib2
|
|
|
|
++ optional hotkeysSupport libX11
|
|
|
|
++ optional osdSupport dbus
|
|
|
|
++ optional alsaSupport alsaLib
|
2015-05-27 20:42:15 +01:00
|
|
|
++ optional pulseSupport libpulseaudio
|
2014-09-13 21:06:28 +01:00
|
|
|
++ optional resamplerSupport libsamplerate
|
|
|
|
++ optional overloadSupport zlib
|
2015-12-01 17:04:04 +00:00
|
|
|
++ optional midiSupport wildmidi
|
2014-09-13 21:06:28 +01:00
|
|
|
++ optional wavpackSupport wavpack
|
|
|
|
++ optional remoteSupport curl
|
|
|
|
;
|
|
|
|
|
2014-10-02 20:55:50 +01:00
|
|
|
nativeBuildInputs = with stdenv.lib; [ intltool pkgconfig ]
|
2016-05-07 13:29:28 +01:00
|
|
|
++ optional gtk3Support wrapGAppsHook;
|
2014-09-13 21:06:28 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Ultimate Music Player for GNU/Linux";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://deadbeef.sourceforge.net/;
|
2014-09-13 21:06:28 +01:00
|
|
|
license = licenses.gpl2;
|
2018-03-09 13:22:08 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2014-09-13 21:06:28 +01:00
|
|
|
maintainers = [ maintainers.abbradar ];
|
2016-04-30 00:58:00 +01:00
|
|
|
repositories.git = "https://github.com/Alexey-Yakovenko/deadbeef";
|
2014-09-13 21:06:28 +01:00
|
|
|
};
|
|
|
|
}
|