git.iko.soy/typeable/nixpkgs
on master help sign in
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

commitb64ecc3b5f3b0dab2622bbccc596b80b5aa470a5 authorDoron Behar <doron.behar@gmail.com> dateSun 7 Jun 2020, 09:19 (6 years ago) parent1c3e3e0
1 file changed+6−1
pkgs/applications/misc/polybar/default.nix+6−1
pkgs/applications/misc/polybar/default.nix+6−1
@@ -1,6 +1,7 @@
11{ cairo, cmake, fetchFromGitHub, libXdmcp, libpthreadstubs, libxcb, pcre, pkgconfig
22, python3, stdenv, xcbproto, xcbutil, xcbutilcursor, xcbutilimage
33, xcbutilrenderutil, xcbutilwm, xcbutilxrm, makeWrapper
4+, removeReferencesTo
45
56# optional packages-- override the variables ending in 'Support' to enable or
67# disable modules
@@ -74,6 +75,10 @@ stdenv.mkDerivation rec {
7475 '' else "";
7576
7677 nativeBuildInputs = [
77− cmake pkgconfig
78+ cmake pkgconfig removeReferencesTo
7879 ];
80+
81+ postFixup = ''
82+ remove-references-to -t ${stdenv.cc} $out/bin/polybar
83+ '';
7984}