Merge pull request #39653 from ayyjayess/polybar_pure

Polybar: make call to i3 pure
This commit is contained in:
Matthew Justin Bauer 2018-05-12 11:53:50 -05:00 committed by GitHub
commit 29c2c646e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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