fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
43 lines
976 B
Nix
43 lines
976 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, kubectl
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "litmusctl";
|
|
version = "1.6.0";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
kubectl
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "litmuschaos";
|
|
repo = "litmusctl";
|
|
rev = "${version}";
|
|
hash = "sha256-aJcnK4VhtqVFaSUf0A40qGb0TBKiqlgkwY2nRdfTl2E=";
|
|
};
|
|
|
|
vendorHash = "sha256-U4dp2E2TZ3rds63PS6GzUVhb2qDSv92bf9JCkWpdLew=";
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd litmusctl \
|
|
--bash <($out/bin/litmusctl completion bash) \
|
|
--fish <($out/bin/listmusctl 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 ];
|
|
};
|
|
}
|