about summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorPeter Romfeld <peter.romfeld.hk@gmail.com>2023-10-17 17:01:39 +0800
committerPeter Romfeld <peter.romfeld.hk@gmail.com>2023-10-18 16:48:17 +0800
commit43decdc877a9e8547a87ad88d090b607678f806f (patch)
tree8987f6ae7e2438fd20d3085f163d4cd95dce923f /pkgs/applications/networking
parent44e948bc21d59decf2b5fb5d1a48bc419b905e5c (diff)
downloadnixlib-43decdc877a9e8547a87ad88d090b607678f806f.tar
nixlib-43decdc877a9e8547a87ad88d090b607678f806f.tar.gz
nixlib-43decdc877a9e8547a87ad88d090b607678f806f.tar.bz2
nixlib-43decdc877a9e8547a87ad88d090b607678f806f.tar.lz
nixlib-43decdc877a9e8547a87ad88d090b607678f806f.tar.xz
nixlib-43decdc877a9e8547a87ad88d090b607678f806f.tar.zst
nixlib-43decdc877a9e8547a87ad88d090b607678f806f.zip
vcluster: fix version output
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/cluster/vcluster/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/vcluster/default.nix b/pkgs/applications/networking/cluster/vcluster/default.nix
index af0642c14c5c..f574daedde03 100644
--- a/pkgs/applications/networking/cluster/vcluster/default.nix
+++ b/pkgs/applications/networking/cluster/vcluster/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
+{ lib, go, buildGoModule, fetchFromGitHub, installShellFiles }:
 
 buildGoModule rec {
   pname = "vcluster";
@@ -17,7 +17,11 @@ buildGoModule rec {
 
   nativeBuildInputs = [ installShellFiles ];
 
-  ldflags = [ "-s" "-w" ];
+  ldflags = [
+    "-s" "-w"
+    "-X main.version=${version}"
+    "-X main.goVersion=${lib.getVersion go}"
+  ];
 
   # Test is disabled because e2e tests expect k8s.
   doCheck = false;