polybar: add i3 to path

wip/yesman
Andrew Scott 6 years ago
parent b959c6ed60
commit 4d0ab5d698
No known key found for this signature in database
GPG Key ID: 3C167098E8182389
  1. 9
      pkgs/applications/misc/polybar/default.nix

@ -1,6 +1,6 @@
{ cairo, cmake, fetchgit, libXdmcp, libpthreadstubs, libxcb, pcre, pkgconfig
, python2 , stdenv, xcbproto, xcbutil, xcbutilimage, xcbutilrenderutil
, xcbutilwm, xcbutilxrm, fetchpatch
, xcbutilwm, xcbutilxrm, fetchpatch, makeWrapper
# optional packages-- override the variables ending in 'Support' to enable or
# disable modules
@ -52,8 +52,15 @@ stdenv.mkDerivation rec {
(if i3Support || i3GapsSupport then jsoncpp else null)
(if i3Support then i3 else null)
(if i3GapsSupport then i3-gaps else null)
(if i3Support || i3GapsSupport then makeWrapper else null)
];
fixupPhase = if (i3Support || i3GapsSupport) then ''
wrapProgram $out/bin/polybar \
--prefix PATH : "${if i3Support then i3 else i3-gaps}/bin"
'' else null;
nativeBuildInputs = [
cmake pkgconfig
];

Loading…
Cancel
Save