mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 09:00:19 +02:00
Merge pull request #91593 from r-ryantm/auto-update/hcloud
hcloud: 1.16.2 -> 1.17.0
This commit is contained in:
commit
f1a5e78176
|
@ -1,8 +1,8 @@
|
||||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "hcloud";
|
pname = "hcloud";
|
||||||
version = "1.16.2";
|
version = "1.17.0";
|
||||||
|
|
||||||
goPackagePath = "github.com/hetznercloud/cli";
|
goPackagePath = "github.com/hetznercloud/cli";
|
||||||
|
|
||||||
|
@ -10,24 +10,20 @@ buildGoModule rec {
|
||||||
owner = "hetznercloud";
|
owner = "hetznercloud";
|
||||||
repo = "cli";
|
repo = "cli";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0cxh92df8gdl4bmr22pdvdxdkdjyfy0jv48y0k6awy1xz61r94ap";
|
sha256 = "1brqqcyyljkdd24ljx2qbr648ihhhmr8mq6gs90n63r59ci6ksch";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "1iiqmdnjnrsqgjisb5j5casa2hmqmafn79157skl5zxawndvc2rj";
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
buildFlagsArray = [ "-ldflags=" "-w -X github.com/hetznercloud/cli/cli.Version=${version}" ];
|
vendorSha256 = "1m96j9cwqz2b67byf53qhgl3s0vfwaklj2pm8364qih0ilvifppj";
|
||||||
|
|
||||||
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/hetznercloud/cli/cli.Version=${version}" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p \
|
for shell in bash zsh; do
|
||||||
$out/etc/bash_completion.d \
|
$out/bin/hcloud completion $shell > hcloud.$shell
|
||||||
$out/share/zsh/vendor-completions
|
installShellCompletion hcloud.$shell
|
||||||
|
done
|
||||||
# Add bash completions
|
|
||||||
$out/bin/hcloud completion bash > "$out/etc/bash_completion.d/hcloud"
|
|
||||||
|
|
||||||
# Add zsh completions
|
|
||||||
echo "#compdef hcloud" > "$out/share/zsh/vendor-completions/_hcloud"
|
|
||||||
$out/bin/hcloud completion zsh >> "$out/share/zsh/vendor-completions/_hcloud"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -37,4 +33,4 @@ buildGoModule rec {
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = stdenv.lib.platforms.all;
|
||||||
maintainers = [ stdenv.lib.maintainers.zauberpony ];
|
maintainers = [ stdenv.lib.maintainers.zauberpony ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue