polybar: format
This commit is contained in:
parent
2913fceb38
commit
05447d62f9
|
@ -30,7 +30,7 @@
|
|||
, i3-gaps
|
||||
, jsoncpp
|
||||
|
||||
# override the variables ending in 'Support' to enable or disable modules
|
||||
# override the variables ending in 'Support' to enable or disable modules
|
||||
, alsaSupport ? true
|
||||
, githubSupport ? false
|
||||
, mpdSupport ? false
|
||||
|
@ -58,8 +58,7 @@ stdenv.mkDerivation rec {
|
|||
pkg-config
|
||||
python3Packages.sphinx
|
||||
removeReferencesTo
|
||||
]
|
||||
++ lib.optional (i3Support || i3GapsSupport) makeWrapper;
|
||||
] ++ lib.optional (i3Support || i3GapsSupport) makeWrapper;
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
|
@ -75,8 +74,7 @@ stdenv.mkDerivation rec {
|
|||
xcbutilrenderutil
|
||||
xcbutilwm
|
||||
xcbutilxrm
|
||||
]
|
||||
++ lib.optional alsaSupport alsa-lib
|
||||
] ++ lib.optional alsaSupport alsa-lib
|
||||
++ lib.optional githubSupport curl
|
||||
++ lib.optional mpdSupport libmpdclient
|
||||
++ lib.optional pulseSupport libpulseaudio
|
||||
|
@ -86,15 +84,17 @@ stdenv.mkDerivation rec {
|
|||
++ lib.optional i3Support i3
|
||||
++ lib.optional i3GapsSupport i3-gaps;
|
||||
|
||||
postInstall = if i3Support
|
||||
then ''wrapProgram $out/bin/polybar \
|
||||
postInstall =
|
||||
if i3Support then ''
|
||||
wrapProgram $out/bin/polybar \
|
||||
--prefix PATH : "${i3}/bin"
|
||||
''
|
||||
else if i3GapsSupport
|
||||
then ''wrapProgram $out/bin/polybar \
|
||||
then ''
|
||||
wrapProgram $out/bin/polybar \
|
||||
--prefix PATH : "${i3-gaps}/bin"
|
||||
''
|
||||
else '''';
|
||||
else "";
|
||||
|
||||
postFixup = ''
|
||||
remove-references-to -t ${stdenv.cc} $out/bin/polybar
|
||||
|
|
Loading…
Reference in a new issue