hcloud: 1.29.0 -> 1.29.5

* Enable tests
* Minor refactoring
This commit is contained in:
superherointj 2022-04-25 19:08:54 -03:00
parent e8e87beee7
commit 9759288f34

View File

@ -2,23 +2,24 @@
buildGoModule rec {
pname = "hcloud";
version = "1.29.0";
version = "1.29.5";
src = fetchFromGitHub {
owner = "hetznercloud";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-B5L4vK5JkcYHqdyxAsP+tBcA6PtM2Gd4JwtW5nMuIXQ=";
sha256 = "sha256-a+AXWr/60VFdNk+UkDYRXo5ib8LvaCVpjNi1GFrRVho=";
};
vendorSha256 = "sha256-iJnjmfP9BcT+OXotbS2+OSWGxQaMXwdlR1WTi04FesM=";
ldflags = [
"-s" "-w"
"-X github.com/hetznercloud/cli/cli.Version=${version}"
];
nativeBuildInputs = [ installShellFiles ];
vendorSha256 = "sha256-3YU6vAIzTzkEwyMPH4QSUuQ1PQlrWnfRRCA1fHMny48=";
doCheck = false;
ldflags = [ "-s" "-w" "-X github.com/hetznercloud/cli/cli.Version=${version}" ];
postInstall = ''
for shell in bash zsh; do
$out/bin/hcloud completion $shell > hcloud.$shell