diff --git a/pkgs/applications/networking/cluster/terraform-backend-git/default.nix b/pkgs/applications/networking/cluster/terraform-backend-git/default.nix index 1cce10b391a9..5fe6b263a631 100644 --- a/pkgs/applications/networking/cluster/terraform-backend-git/default.nix +++ b/pkgs/applications/networking/cluster/terraform-backend-git/default.nix @@ -21,7 +21,11 @@ buildGoModule rec { installShellFiles ]; - ldflags = [ "-s" "-w" ]; + ldflags = [ + "-s" + "-w" + "-X=github.com/plumber-cd/terraform-backend-git/cmd.Version=${version}" + ]; postInstall = '' installShellCompletion --cmd terraform-backend-git \