deadbeef: remove useless nulls

main
Artturin 2 years ago
parent 25cdf9bd9e
commit 14a9590751
  1. 63
      pkgs/applications/audio/deadbeef/default.nix

@ -6,56 +6,35 @@
, pkg-config , pkg-config
, jansson , jansson
# deadbeef can use either gtk2 or gtk3 # deadbeef can use either gtk2 or gtk3
, gtk2Support ? false, gtk2 ? null , gtk2Support ? false, gtk2
, gtk3Support ? true, gtk3 ? null, gsettings-desktop-schemas ? null, wrapGAppsHook ? null , gtk3Support ? true, gtk3, gsettings-desktop-schemas, wrapGAppsHook
# input plugins # input plugins
, vorbisSupport ? true, libvorbis ? null , vorbisSupport ? true, libvorbis
, mp123Support ? true, libmad ? null , mp123Support ? true, libmad
, flacSupport ? true, flac ? null , flacSupport ? true, flac
, wavSupport ? true, libsndfile ? null , wavSupport ? true, libsndfile
, cdaSupport ? true, libcdio ? null, libcddb ? null , cdaSupport ? true, libcdio, libcddb
, aacSupport ? true, faad2 ? null , aacSupport ? true, faad2
, opusSupport ? true, opusfile ? null , opusSupport ? true, opusfile
, wavpackSupport ? false, wavpack ? null , wavpackSupport ? false, wavpack
, ffmpegSupport ? false, ffmpeg ? null , ffmpegSupport ? false, ffmpeg
, apeSupport ? true, yasm ? null , apeSupport ? true, yasm
# misc plugins # misc plugins
, zipSupport ? true, libzip ? null , zipSupport ? true, libzip
, artworkSupport ? true, imlib2 ? null , artworkSupport ? true, imlib2
, hotkeysSupport ? true, libX11 ? null , hotkeysSupport ? true, libX11
, osdSupport ? true, dbus ? null , osdSupport ? true, dbus
# output plugins # output plugins
, alsaSupport ? true, alsa-lib ? null , alsaSupport ? true, alsa-lib
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null , pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
# effect plugins # effect plugins
, resamplerSupport ? true, libsamplerate ? null , resamplerSupport ? true, libsamplerate
, overloadSupport ? true, zlib ? null , overloadSupport ? true, zlib
# transports # transports
, remoteSupport ? true, curl ? null , remoteSupport ? true, curl
}: }:
assert gtk2Support || gtk3Support; assert gtk2Support || gtk3Support;
assert gtk2Support -> gtk2 != null;
assert gtk3Support -> gtk3 != null && gsettings-desktop-schemas != null && wrapGAppsHook != null;
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 opusSupport -> opusfile != null;
assert zipSupport -> libzip != null;
assert ffmpegSupport -> ffmpeg != null;
assert apeSupport -> yasm != null;
assert artworkSupport -> imlib2 != null;
assert hotkeysSupport -> libX11 != null;
assert osdSupport -> dbus != null;
assert alsaSupport -> alsa-lib != null;
assert pulseSupport -> libpulseaudio != null;
assert resamplerSupport -> libsamplerate != null;
assert overloadSupport -> zlib != null;
assert wavpackSupport -> wavpack != null;
assert remoteSupport -> curl != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "deadbeef"; pname = "deadbeef";

Loading…
Cancel
Save