polybar: add i3 to path

This commit is contained in:
Andrew Scott 2018-05-07 00:39:32 +01:00
parent b959c6ed60
commit 4d0ab5d698
No known key found for this signature in database
GPG key ID: 3C167098E8182389

View file

@ -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
];