From b9fb0b5d60be3fa46b391c1f29940aed18ba0b4b Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 9 Jul 2023 10:24:16 -0400 Subject: [PATCH] kube-score: fix version --- .../applications/networking/cluster/kube-score/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/networking/cluster/kube-score/default.nix b/pkgs/applications/networking/cluster/kube-score/default.nix index f8b75cd73329..720bf00ff6b3 100644 --- a/pkgs/applications/networking/cluster/kube-score/default.nix +++ b/pkgs/applications/networking/cluster/kube-score/default.nix @@ -16,6 +16,13 @@ buildGoModule rec { vendorHash = "sha256-UpuwkQHcNg3rohr+AdALakIdHroIySlTnXHgoUdY+EQ="; + ldflags = [ + "-s" + "-w" + "-X=main.version=${version}" + "-X=main.commit=${src.rev}" + ]; + meta = with lib; { description = "Kubernetes object analysis with recommendations for improved reliability and security"; homepage = "https://github.com/zegl/kube-score";