hetzner-kube: set the version via ldflags

This commit is contained in:
Wael M. Nasreddine
2019-03-14 10:31:20 -07:00
parent 8f5b40591d
commit 8f8e71c0a1
@@ -13,6 +13,11 @@ buildGoModule rec {
modSha256 = "1mx74nci7j7h44pw1qf5fxkvfnhppj46898f8895ay8hhxd28lbm";
buildFlagsArray = ''
-ldflags=
-X github.com/xetys/hetzner-kube/cmd.version=${version}
'';
meta = {
description = "A CLI tool for provisioning Kubernetes clusters on Hetzner Cloud";
homepage = https://github.com/xetys/hetzner-kube;