diff options
author | Andrew Scott <3648487+ayyjayess@users.noreply.github.com> | 2018-05-07 00:39:32 +0100 |
---|---|---|
committer | Andrew Scott <3648487+ayyjayess@users.noreply.github.com> | 2018-05-07 00:44:00 +0100 |
commit | 4d0ab5d698fcb198c462adedff47e15c4edea36e (patch) | |
tree | 5ce7a074fbf6aeb5d0acca3dc41821b8263df63a /pkgs/applications/misc/polybar/default.nix | |
parent | b959c6ed60865ee0d9c28b03b3d42f4c0c64ddad (diff) | |
download | nixpkgs-4d0ab5d698fcb198c462adedff47e15c4edea36e.tar nixpkgs-4d0ab5d698fcb198c462adedff47e15c4edea36e.tar.gz nixpkgs-4d0ab5d698fcb198c462adedff47e15c4edea36e.tar.bz2 nixpkgs-4d0ab5d698fcb198c462adedff47e15c4edea36e.tar.lz nixpkgs-4d0ab5d698fcb198c462adedff47e15c4edea36e.tar.xz nixpkgs-4d0ab5d698fcb198c462adedff47e15c4edea36e.tar.zst nixpkgs-4d0ab5d698fcb198c462adedff47e15c4edea36e.zip |
polybar: add i3 to path
Diffstat (limited to 'pkgs/applications/misc/polybar/default.nix')
-rw-r--r-- | pkgs/applications/misc/polybar/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/misc/polybar/default.nix b/pkgs/applications/misc/polybar/default.nix index a3b87fd34f6..05ad3e2a906 100644 --- a/pkgs/applications/misc/polybar/default.nix +++ b/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 ]; |