polybar: remove unnecessary asserts

This commit is contained in:
fortuneteller2k 2021-04-21 11:22:25 +08:00
parent 20c9bed8b7
commit b9e04c759e

View File

@ -19,29 +19,27 @@
, xcbutilxrm , xcbutilxrm
, makeWrapper , makeWrapper
, removeReferencesTo , removeReferencesTo
, alsaLib
, curl
, libmpdclient
, libpulseaudio
, wirelesstools
, libnl
, i3
, i3-gaps
, jsoncpp
# optional packages-- override the variables ending in 'Support' to enable or # override the variables ending in 'Support' to enable or disable modules
# disable modules , alsaSupport ? true
, alsaSupport ? true, alsaLib ? null , githubSupport ? false
, githubSupport ? false, curl ? null , mpdSupport ? false
, mpdSupport ? false, libmpdclient ? null , pulseSupport ? false
, pulseSupport ? false, libpulseaudio ? null , iwSupport ? false
, iwSupport ? false, wirelesstools ? null , nlSupport ? true
, nlSupport ? true, libnl ? null , i3Support ? false
, i3Support ? false, i3GapsSupport ? false, i3 ? null, i3-gaps ? null, jsoncpp ? null , i3GapsSupport ? false
}: }:
assert alsaSupport -> alsaLib != null;
assert githubSupport -> curl != null;
assert mpdSupport -> libmpdclient != null;
assert pulseSupport -> libpulseaudio != null;
assert iwSupport -> ! nlSupport && wirelesstools != null;
assert nlSupport -> ! iwSupport && libnl != null;
assert i3Support -> ! i3GapsSupport && jsoncpp != null && i3 != null;
assert i3GapsSupport -> ! i3Support && jsoncpp != null && i3-gaps != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "polybar"; pname = "polybar";
version = "3.5.5"; version = "3.5.5";