2022-07-14 12:49:19 +00:00
|
|
|
{ lib, config, clangStdenv, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, intltool
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, jansson
|
2022-07-14 12:49:19 +00:00
|
|
|
, swift-corelibs-libdispatch
|
2020-04-24 23:36:52 +00:00
|
|
|
# deadbeef can use either gtk2 or gtk3
|
2022-05-18 14:49:53 +00:00
|
|
|
, gtk2Support ? false, gtk2
|
|
|
|
, gtk3Support ? true, gtk3, gsettings-desktop-schemas, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
# input plugins
|
2022-05-18 14:49:53 +00:00
|
|
|
, vorbisSupport ? true, libvorbis
|
|
|
|
, mp123Support ? true, libmad
|
|
|
|
, flacSupport ? true, flac
|
|
|
|
, wavSupport ? true, libsndfile
|
|
|
|
, cdaSupport ? true, libcdio, libcddb
|
|
|
|
, aacSupport ? true, faad2
|
|
|
|
, opusSupport ? true, opusfile
|
|
|
|
, wavpackSupport ? false, wavpack
|
|
|
|
, ffmpegSupport ? false, ffmpeg
|
|
|
|
, apeSupport ? true, yasm
|
2020-04-24 23:36:52 +00:00
|
|
|
# misc plugins
|
2022-05-18 14:49:53 +00:00
|
|
|
, zipSupport ? true, libzip
|
|
|
|
, artworkSupport ? true, imlib2
|
|
|
|
, hotkeysSupport ? true, libX11
|
|
|
|
, osdSupport ? true, dbus
|
2020-04-24 23:36:52 +00:00
|
|
|
# output plugins
|
2022-05-18 14:49:53 +00:00
|
|
|
, alsaSupport ? true, alsa-lib
|
2022-07-14 12:49:19 +00:00
|
|
|
, pulseSupport ? config.pulseaudio or true, libpulseaudio
|
2020-04-24 23:36:52 +00:00
|
|
|
# effect plugins
|
2022-05-18 14:49:53 +00:00
|
|
|
, resamplerSupport ? true, libsamplerate
|
|
|
|
, overloadSupport ? true, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
# transports
|
2022-05-18 14:49:53 +00:00
|
|
|
, remoteSupport ? true, curl
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert gtk2Support || gtk3Support;
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
let
|
|
|
|
inherit (lib) optionals;
|
|
|
|
|
|
|
|
version = "1.9.1";
|
|
|
|
in clangStdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "deadbeef";
|
2022-07-14 12:49:19 +00:00
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DeaDBeeF-Player";
|
|
|
|
repo = "deadbeef";
|
2022-07-14 12:49:19 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-e3bAGpkRPIqVWl0nvSZ61JpIQZw24mqE9218SWHBCFo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
buildInputs = [
|
|
|
|
jansson
|
|
|
|
swift-corelibs-libdispatch
|
|
|
|
] ++ optionals gtk2Support [
|
|
|
|
gtk2
|
|
|
|
] ++ optionals gtk3Support [
|
|
|
|
gtk3
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
] ++ optionals vorbisSupport [
|
|
|
|
libvorbis
|
|
|
|
] ++ optionals mp123Support [
|
|
|
|
libmad
|
|
|
|
] ++ optionals flacSupport [
|
|
|
|
flac
|
|
|
|
] ++ optionals wavSupport [
|
|
|
|
libsndfile
|
|
|
|
] ++ optionals cdaSupport [
|
|
|
|
libcdio
|
|
|
|
libcddb
|
|
|
|
] ++ optionals aacSupport [
|
|
|
|
faad2
|
|
|
|
] ++ optionals opusSupport [
|
|
|
|
opusfile
|
|
|
|
] ++ optionals zipSupport [
|
|
|
|
libzip
|
|
|
|
] ++ optionals ffmpegSupport [
|
|
|
|
ffmpeg
|
|
|
|
] ++ optionals apeSupport [
|
|
|
|
yasm
|
|
|
|
] ++ optionals artworkSupport [
|
|
|
|
imlib2
|
|
|
|
] ++ optionals hotkeysSupport [
|
|
|
|
libX11
|
|
|
|
] ++ optionals osdSupport [
|
|
|
|
dbus
|
|
|
|
] ++ optionals alsaSupport [
|
|
|
|
alsa-lib
|
|
|
|
] ++ optionals pulseSupport [
|
|
|
|
libpulseaudio
|
|
|
|
] ++ optionals resamplerSupport [
|
|
|
|
libsamplerate
|
|
|
|
] ++ optionals overloadSupport [
|
|
|
|
zlib
|
|
|
|
] ++ optionals wavpackSupport [
|
|
|
|
wavpack
|
|
|
|
] ++ optionals remoteSupport [
|
|
|
|
curl
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
intltool
|
|
|
|
libtool
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2022-07-14 12:49:19 +00:00
|
|
|
] ++ optionals gtk3Support [
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Ultimate Music Player for GNU/Linux";
|
|
|
|
homepage = "http://deadbeef.sourceforge.net/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
maintainers = [ maintainers.abbradar ];
|
|
|
|
};
|
|
|
|
}
|