From b862ed91078c37cd6ac5fcaa72a401f02113f754 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Wed, 20 Oct 2021 10:37:40 +0200 Subject: [PATCH] kubecfg: add version to ldflags So that the version subcommand will list the actual version, instead of just "(dev build)". --- pkgs/applications/networking/cluster/kubecfg/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/networking/cluster/kubecfg/default.nix b/pkgs/applications/networking/cluster/kubecfg/default.nix index 61e291340568..7c986bfcbd5b 100644 --- a/pkgs/applications/networking/cluster/kubecfg/default.nix +++ b/pkgs/applications/networking/cluster/kubecfg/default.nix @@ -15,6 +15,8 @@ buildGoPackage { goPackagePath = "github.com/bitnami/kubecfg"; + ldflags = [ "-X main.version=v${version}" ]; + meta = { description = "A tool for managing Kubernetes resources as code"; homepage = "https://github.com/bitnami/kubecfg";