mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
chart-testing: install shell completion
This commit is contained in:
parent
a2bbddbf36
commit
128359aeca
@ -1,4 +1,4 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "chart-testing";
|
||||
@ -26,9 +26,16 @@ buildGoModule rec {
|
||||
"-X github.com/helm/chart-testing/v3/ct/cmd.BuildDate=19700101-00:00:00"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 -t $out/etc/ct etc/chart_schema.yaml
|
||||
install -Dm644 -t $out/etc/ct etc/lintconf.yaml
|
||||
|
||||
installShellCompletion --cmd ct \
|
||||
--bash <($out/bin/ct completion bash) \
|
||||
--zsh <($out/bin/ct completion zsh) \
|
||||
--fish <($out/bin/ct completion fish) \
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
@ -36,5 +43,6 @@ buildGoModule rec {
|
||||
homepage = "https://github.com/helm/chart-testing";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ atkinschang ];
|
||||
mainProgram = "ct";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user