nixpkgs/pkgs/by-name/li/litmusctl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
976 B
Nix
Raw Normal View History

2024-05-10 14:23:56 +00:00
{ buildGoModule
, fetchFromGitHub
, installShellFiles
, kubectl
, lib
}:
buildGoModule rec {
pname = "litmusctl";
2024-10-20 04:45:22 +00:00
version = "1.11.0";
2024-05-10 14:23:56 +00:00
nativeBuildInputs = [
installShellFiles
];
buildInputs = [
kubectl
];
src = fetchFromGitHub {
owner = "litmuschaos";
repo = "litmusctl";
rev = "${version}";
2024-10-20 04:45:22 +00:00
hash = "sha256-ByDtmKLdPSFGIPCdFlNr2yv3gnyfdjiuIuKcryvKwkY=";
2024-05-10 14:23:56 +00:00
};
2024-06-17 13:42:36 +00:00
vendorHash = "sha256-7FYOQ89aUFPX+5NCPYKg+YGCXstQ6j9DK4V2mCgklu0=";
2024-05-10 14:23:56 +00:00
postInstall = ''
installShellCompletion --cmd litmusctl \
--bash <($out/bin/litmusctl completion bash) \
2024-08-10 09:18:46 +00:00
--fish <($out/bin/litmusctl completion fish) \
2024-05-10 14:23:56 +00:00
--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 ];
};
}