summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorEnno Richter <enno@nerdworks.de>2021-12-31 18:09:07 +0100
committerEnno Richter <enno@nerdworks.de>2021-12-31 18:09:07 +0100
commit022facde9a9c9f87f8fde522208caf85064c6600 (patch)
tree0b3273a977c0448dbb3779e007ff51efc6610cd2 /pkgs/tools/system
parentfe1dd6a8f2af6ae6e85fe369a07bf6c155528594 (diff)
downloadnixpkgs-022facde9a9c9f87f8fde522208caf85064c6600.tar
nixpkgs-022facde9a9c9f87f8fde522208caf85064c6600.tar.gz
nixpkgs-022facde9a9c9f87f8fde522208caf85064c6600.tar.bz2
nixpkgs-022facde9a9c9f87f8fde522208caf85064c6600.tar.lz
nixpkgs-022facde9a9c9f87f8fde522208caf85064c6600.tar.xz
nixpkgs-022facde9a9c9f87f8fde522208caf85064c6600.tar.zst
nixpkgs-022facde9a9c9f87f8fde522208caf85064c6600.zip
btop: remove reference to gcc
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/btop/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/system/btop/default.nix b/pkgs/tools/system/btop/default.nix
index 70b1a78586c..9ffdd46c6b4 100644
--- a/pkgs/tools/system/btop/default.nix
+++ b/pkgs/tools/system/btop/default.nix
@@ -3,6 +3,7 @@
 , fetchFromGitHub
 , runCommand
 , darwin
+, removeReferencesTo
 }:
 
 stdenv.mkDerivation rec {
@@ -38,6 +39,10 @@ stdenv.mkDerivation rec {
 
   installFlags = [ "PREFIX=$(out)" ];
 
+  postInstall = ''
+    ${removeReferencesTo}/bin/remove-references-to -t ${stdenv.cc.cc} $(readlink -f $out/bin/btop)
+  '';
+
   meta = with lib; {
     description = "A monitor of resources";
     homepage = "https://github.com/aristocratos/btop";