Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "cirrus-cli";
|
|
version = "0.154.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cirruslabs";
|
|
repo = "cirrus-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-jmjCqdoJj9ggxC6JaW7BObWCWKdfB0ZOSOfUA2BgUCc=";
|
|
};
|
|
|
|
vendorHash = "sha256-ag1HzNrSqGTJGXxhdspxHsJRBu7tuB5nDFiEWh1VOsU=";
|
|
|
|
ldflags = [
|
|
"-X github.com/cirruslabs/cirrus-cli/internal/version.Version=v${version}"
|
|
"-X github.com/cirruslabs/cirrus-cli/internal/version.Commit=v${version}"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
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;
|
|
|
|
meta = with lib; {
|
|
description = "CLI for executing Cirrus tasks locally and in any CI";
|
|
homepage = "https://github.com/cirruslabs/cirrus-cli";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
mainProgram = "cirrus";
|
|
};
|
|
}
|