about summary refs log tree commit diff
path: root/pkgs/tools/admin/berglas
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-06-04 22:28:55 -0400
committerfigsoda <figsoda@pm.me>2023-06-04 22:28:55 -0400
commit1db6ed088587a8783fed13fcb9870960e456a99e (patch)
tree737927143d2f38db6471d821485004d3a9830d36 /pkgs/tools/admin/berglas
parent7409480d5c8584a1a83c422530419efe4afb0d19 (diff)
berglas: fix version
Diffstat (limited to 'pkgs/tools/admin/berglas')
-rw-r--r--pkgs/tools/admin/berglas/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/admin/berglas/default.nix b/pkgs/tools/admin/berglas/default.nix
index 113a98b5650ff..97c7cbacba0fa 100644
--- a/pkgs/tools/admin/berglas/default.nix
+++ b/pkgs/tools/admin/berglas/default.nix
@@ -38,6 +38,12 @@ buildGoModule rec {
 
   vendorHash = "sha256-qcFS07gma7GVxhdrYca0E6rcczNcZmU8JcjjcpEaxp0=";
 
+  ldflags = [
+    "-s"
+    "-w"
+    "-X=github.com/GoogleCloudPlatform/berglas/internal/version.Version=${version}"
+  ];
+
   postPatch = skipTestsCommand;
 
   meta = with lib; {