polybar: Don't reference gcc

Polybar wants to be capable of printing the compiler that was used to
build it with `polybar -vv` but that makes it reference gcc. See:

15e79b09d3/src/settings.cpp.cmake (L55)
This commit is contained in:
Doron Behar 2020-06-07 09:19:04 +03:00
parent 1c3e3e081c
commit b64ecc3b5f

View File

@ -1,6 +1,7 @@
{ cairo, cmake, fetchFromGitHub, libXdmcp, libpthreadstubs, libxcb, pcre, pkgconfig
, python3, stdenv, xcbproto, xcbutil, xcbutilcursor, xcbutilimage
, xcbutilrenderutil, xcbutilwm, xcbutilxrm, makeWrapper
, removeReferencesTo
# optional packages-- override the variables ending in 'Support' to enable or
# disable modules
@ -74,6 +75,10 @@ stdenv.mkDerivation rec {
'' else "";
nativeBuildInputs = [
cmake pkgconfig
cmake pkgconfig removeReferencesTo
];
postFixup = ''
remove-references-to -t ${stdenv.cc} $out/bin/polybar
'';
}