blob: fdc95da3a70f338b6ba061c6ef19340597cf34c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ buildGoModule
, fetchFromGitHub
, installShellFiles
, kubectl
, lib
}:
buildGoModule rec {
pname = "litmusctl";
version = "1.10.0";
nativeBuildInputs = [
installShellFiles
];
buildInputs = [
kubectl
];
src = fetchFromGitHub {
owner = "litmuschaos";
repo = "litmusctl";
rev = "${version}";
hash = "sha256-0I07qgl/yyNAG19eAkZAXh7TkK3V1lnQTPXskF6k/L0=";
};
vendorHash = "sha256-7FYOQ89aUFPX+5NCPYKg+YGCXstQ6j9DK4V2mCgklu0=";
postInstall = ''
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 ];
};
}
|