diff options
author | Peter Romfeld <peter.romfeld.hk@gmail.com> | 2023-10-17 17:01:39 +0800 |
---|---|---|
committer | Peter Romfeld <peter.romfeld.hk@gmail.com> | 2023-10-18 16:48:17 +0800 |
commit | 43decdc877a9e8547a87ad88d090b607678f806f (patch) | |
tree | 8987f6ae7e2438fd20d3085f163d4cd95dce923f /pkgs/applications/networking/cluster/vcluster | |
parent | 44e948bc21d59decf2b5fb5d1a48bc419b905e5c (diff) |
vcluster: fix version output
Diffstat (limited to 'pkgs/applications/networking/cluster/vcluster')
-rw-r--r-- | pkgs/applications/networking/cluster/vcluster/default.nix | 8 |
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 af0642c14c5c4..f574daedde033 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; |