diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-06-07 09:19:04 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2020-06-07 09:19:04 +0300 |
commit | b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5 (patch) | |
tree | 56be3f1ce245e744a8bdbce6ffec1b188b321c5c /pkgs/applications/misc | |
parent | 1c3e3e081c22ba4dbf8f1b8cb31a55830596b838 (diff) | |
download | nixlib-b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5.tar nixlib-b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5.tar.gz nixlib-b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5.tar.bz2 nixlib-b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5.tar.lz nixlib-b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5.tar.xz nixlib-b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5.tar.zst nixlib-b64ecc3b5f3b0dab2622bbccc596b80b5aa470a5.zip |
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: https://github.com/polybar/polybar/blob/15e79b09d33c7cac888f93d218ae8be5ae617a2b/src/settings.cpp.cmake#L55
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/polybar/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/misc/polybar/default.nix b/pkgs/applications/misc/polybar/default.nix index a793ee887243..c324a3f8be40 100644 --- a/pkgs/applications/misc/polybar/default.nix +++ b/pkgs/applications/misc/polybar/default.nix @@ -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 + ''; } |