depot/third_party/nixpkgs/pkgs/by-name/li/litmusctl/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
976 B
Nix

{ buildGoModule
, fetchFromGitHub
, installShellFiles
, kubectl
, lib
}:
buildGoModule rec {
pname = "litmusctl";
version = "1.7.0";
nativeBuildInputs = [
installShellFiles
];
buildInputs = [
kubectl
];
src = fetchFromGitHub {
owner = "litmuschaos";
repo = "litmusctl";
rev = "${version}";
hash = "sha256-g3g0wVjtVIF56N1gTillHMkNDHt58tpRQa2ds+3rHAE=";
};
vendorHash = "sha256-7FYOQ89aUFPX+5NCPYKg+YGCXstQ6j9DK4V2mCgklu0=";
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 ];
};
}