Merge pull request #192319 from r-ryantm/auto-update/metal-cli
metal-cli: 0.9.0 -> 0.9.1
This commit is contained in:
commit
09b0a4424b
1 changed files with 12 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "metal-cli";
|
pname = "metal-cli";
|
||||||
version = "0.9.0";
|
version = "0.9.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "equinix";
|
owner = "equinix";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-ivO4YFFDTza20WgTGEaSGUcIEvXVtwKKVGyKWe8d9bA=";
|
sha256 = "sha256-+G3PBYeez1dcUELc4j6CRgxDCDWCxpOfI52QlvMVkrY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-rf0EWMVvuoPUMTQKi/FnUbE2ZAs0C7XosHAzCgwB5wg=";
|
vendorSha256 = "sha256-rf0EWMVvuoPUMTQKi/FnUbE2ZAs0C7XosHAzCgwB5wg=";
|
||||||
|
@ -18,6 +18,15 @@ buildGoModule rec {
|
||||||
"-X github.com/equinix/metal-cli/cmd.Version=${version}"
|
"-X github.com/equinix/metal-cli/cmd.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd metal \
|
||||||
|
--bash <($out/bin/metal completion bash) \
|
||||||
|
--fish <($out/bin/metal completion fish) \
|
||||||
|
--zsh <($out/bin/metal completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
Loading…
Reference in a new issue