about summary refs log tree commit diff
path: root/pkgs/tools/system/gotop
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-02-06 21:19:28 +0100
committerGitHub <noreply@github.com>2021-02-06 21:19:28 +0100
commit31a70d11441261f3248b52c84c6b08bc476525cc (patch)
treeed010067ecbee095bdb51d81b7b80bf44b70be06 /pkgs/tools/system/gotop
parentc186fb2528fec680824e95be96b14dd0d6db0f93 (diff)
parentae9b96ed45f4445ebee280a724ab28d40a112468 (diff)
Merge pull request #112140 from fabaff/version-gotop
Diffstat (limited to 'pkgs/tools/system/gotop')
-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)
   '';