3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #170335 from superherointj/package-hcloud-1.29.5

hcloud: 1.29.0 -> 1.29.5
This commit is contained in:
Sandro 2022-04-26 13:31:16 +02:00 committed by GitHub
commit 16c42b7c57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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