mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
polybar: nuke reference to stdenv.cc, small clean up
This commit is contained in:
parent
92fcce4641
commit
10e3dde91f
@ -64,10 +64,15 @@ stdenv.mkDerivation rec {
|
|||||||
(if i3Support || i3GapsSupport then makeWrapper else null)
|
(if i3Support || i3GapsSupport then makeWrapper else null)
|
||||||
];
|
];
|
||||||
|
|
||||||
fixupPhase = if (i3Support || i3GapsSupport) then ''
|
postConfigure = ''
|
||||||
|
substituteInPlace ../include/settings.hpp --replace \
|
||||||
|
"${stdenv.cc}" "${stdenv.cc.name}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = if (i3Support || i3GapsSupport) then ''
|
||||||
wrapProgram $out/bin/polybar \
|
wrapProgram $out/bin/polybar \
|
||||||
--prefix PATH : "${if i3Support then i3 else i3-gaps}/bin"
|
--prefix PATH : "${if i3Support then i3 else i3-gaps}/bin"
|
||||||
'' else null;
|
'' else "";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake pkgconfig
|
cmake pkgconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user