mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
Merge pull request #205228 from techknowlogick/cirrus-cli-0921
cirrus-cli: 0.92.0 -> 0.92.1
This commit is contained in:
commit
03218f0a5a
@ -1,17 +1,18 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "cirrus-cli";
|
||||
version = "0.92.0";
|
||||
version = "0.92.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cirruslabs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-q6hpsyZZep8IERYh7/oVcCQdgc/s6HufiuE4oNPBaZc=";
|
||||
sha256 = "sha256-ehJyC5NXB53i7ZpWTKySnMwWiqgbgBbnxIVWhyrXC0A=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-Llq6siZn34sHsZFneT+MLXf2W9cXqi4DZwrH1R5laOY=";
|
||||
@ -21,6 +22,14 @@ buildGoModule rec {
|
||||
"-X github.com/cirruslabs/cirrus-cli/internal/version.Commit=v${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd cirrus \
|
||||
--bash <($out/bin/cirrus completion bash) \
|
||||
--zsh <($out/bin/cirrus completion zsh) \
|
||||
--fish <($out/bin/cirrus completion fish)
|
||||
'';
|
||||
|
||||
# tests fail on read-only filesystem
|
||||
doCheck = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user