about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/system/gotop/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/tools/system/gotop/default.nix b/pkgs/tools/system/gotop/default.nix
index f854e2b8c3fdf..1cc0ba8773997 100644
--- a/pkgs/tools/system/gotop/default.nix
+++ b/pkgs/tools/system/gotop/default.nix
@@ -14,6 +14,8 @@ buildGoModule rec {
   runVend = true;
   vendorSha256 = "sha256-GcIaUIuTiSY1aKxRtclfl7hMNaZZx4uoVG7ahjF/4Hs=";
 
+  buildFlagsArray = [ "-ldflags=-s -w -X main.Version=v${version}" ];
+
   preCheck = ''
     export HOME=$(mktemp -d)
   '';