mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 20:03:24 +00:00
Merge pull request #309817 from Sail0rd/create-litmusctl
litmusctl: init at 1.5.0
This commit is contained in:
commit
10f84be8df
@ -17819,6 +17819,12 @@
|
||||
fingerprint = "E628 C811 6FB8 1657 F706 4EA4 F251 ADDC 9D04 1C7E";
|
||||
}];
|
||||
};
|
||||
sailord = {
|
||||
name = "Sailord";
|
||||
email = "sailord328@gmail.com";
|
||||
github = "Sail0rd";
|
||||
githubId = 55802415;
|
||||
};
|
||||
samalws = {
|
||||
email = "sam@samalws.com";
|
||||
name = "Sam Alws";
|
||||
|
43
pkgs/by-name/li/litmusctl/package.nix
Normal file
43
pkgs/by-name/li/litmusctl/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, kubectl
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "litmusctl";
|
||||
version = "1.5.0";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
kubectl
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "litmuschaos";
|
||||
repo = "litmusctl";
|
||||
rev = "${version}";
|
||||
hash = "sha256-FORrvPKDTG48WV03+HbXiBJa1IHfHV7yMDhQX64kn6U=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user