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