diff options
author | Piotr Bogdan <ppbogdan@gmail.com> | 2018-11-02 00:54:37 +0000 |
---|---|---|
committer | Piotr Bogdan <ppbogdan@gmail.com> | 2018-11-02 00:54:37 +0000 |
commit | 10e3dde91f4f1a4628d295b5dc1716ace194d28f (patch) | |
tree | cb35d83a4cf5e5c1902465cec8e5fdeefaf1b345 /pkgs/applications/misc/polybar | |
parent | 92fcce46412f54d451c834e7fc383a06c5a2936e (diff) |
polybar: nuke reference to stdenv.cc, small clean up
Diffstat (limited to 'pkgs/applications/misc/polybar')
-rw-r--r-- | pkgs/applications/misc/polybar/default.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/applications/misc/polybar/default.nix b/pkgs/applications/misc/polybar/default.nix index 0c358e4221a1a..9756e8ca6c4fd 100644 --- a/pkgs/applications/misc/polybar/default.nix +++ b/pkgs/applications/misc/polybar/default.nix @@ -64,10 +64,15 @@ stdenv.mkDerivation rec { (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; + postConfigure = '' + substituteInPlace ../include/settings.hpp --replace \ + "${stdenv.cc}" "${stdenv.cc.name}" + ''; + + postInstall = if (i3Support || i3GapsSupport) then '' + wrapProgram $out/bin/polybar \ + --prefix PATH : "${if i3Support then i3 else i3-gaps}/bin" + '' else ""; nativeBuildInputs = [ cmake pkgconfig |