mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
ytt: install completions
This commit is contained in:
parent
3c34f79bf7
commit
17a36446ae
@ -1,4 +1,5 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ytt";
|
||||
version = "0.45.3";
|
||||
@ -12,12 +13,21 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
ldflags = [
|
||||
"-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=${version}"
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/ytt" ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd ytt \
|
||||
--bash <($out/bin/ytt completion bash) \
|
||||
--fish <($out/bin/ytt completion fish) \
|
||||
--zsh <($out/bin/ytt completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "YAML templating tool that allows configuration of complex software via reusable templates with user-provided values";
|
||||
homepage = "https://get-ytt.io";
|
||||
|
Loading…
Reference in New Issue
Block a user