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
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
kubectl,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "litmusctl";
|
|
version = "1.18.0";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
kubectl
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "litmuschaos";
|
|
repo = "litmusctl";
|
|
rev = "${version}";
|
|
hash = "sha256-lfR4Nk9n6mpfQVrVoI2iaCYkJelgGi5QLdZN9n0qPVQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-7FYOQ89aUFPX+5NCPYKg+YGCXstQ6j9DK4V2mCgklu0=";
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd litmusctl \
|
|
--bash <($out/bin/litmusctl completion bash) \
|
|
--fish <($out/bin/litmusctl completion fish) \
|
|
--zsh <($out/bin/litmusctl completion zsh)
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command-Line tool to manage Litmuschaos's agent plane";
|
|
homepage = "https://github.com/litmuschaos/litmusctl";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "litmusctl";
|
|
maintainers = with lib.maintainers; [
|
|
vinetos
|
|
sailord
|
|
];
|
|
};
|
|
}
|