mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
tanka: add bash completion
This commit is contained in:
parent
ddc91f6fdc
commit
738d3dda54
@ -1,4 +1,4 @@
|
|||||||
{ buildGoModule, fetchFromGitHub, lib }:
|
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "tanka";
|
pname = "tanka";
|
||||||
@ -15,6 +15,13 @@ buildGoModule rec {
|
|||||||
|
|
||||||
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
echo "complete -C $out/bin/tk tk" > tk.bash
|
||||||
|
installShellCompletion tk.bash
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Flexible, reusable and concise configuration for Kubernetes";
|
description = "Flexible, reusable and concise configuration for Kubernetes";
|
||||||
homepage = "https://github.com/grafana/tanka/";
|
homepage = "https://github.com/grafana/tanka/";
|
||||||
|
Loading…
Reference in New Issue
Block a user