From ea393e2697944ca3306d2c359e12338f575b9cf0 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 12 Dec 2022 17:04:47 -0500 Subject: [PATCH] cirrus-cli: 0.92.0 -> 0.92.1 --- .../continuous-integration/cirrus-cli/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/continuous-integration/cirrus-cli/default.nix b/pkgs/development/tools/continuous-integration/cirrus-cli/default.nix index e7f80f7bc9a2..05bfd5655b28 100644 --- a/pkgs/development/tools/continuous-integration/cirrus-cli/default.nix +++ b/pkgs/development/tools/continuous-integration/cirrus-cli/default.nix @@ -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;