hetzner-kube: set the version via ldflags

This commit is contained in:
Wael M. Nasreddine 2019-03-13 18:24:04 -07:00
parent 8f5b40591d
commit 8f8e71c0a1
No known key found for this signature in database
GPG Key ID: FD437548E0BF0F5F

@ -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;