2023-07-15 17:15:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ytt";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.50.0";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vmware-tanzu";
|
|
|
|
repo = "carvel-ytt";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-57SCBlA2IoBy0iygqunFPBS/nyLtl7e7GlA3vB+ED/4=";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = null;
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
subPackages = [ "cmd/ytt" ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd ytt \
|
|
|
|
--bash <($out/bin/ytt completion bash) \
|
|
|
|
--fish <($out/bin/ytt completion fish) \
|
|
|
|
--zsh <($out/bin/ytt completion zsh)
|
|
|
|
'';
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "YAML templating tool that allows configuration of complex software via reusable templates with user-provided values";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ytt";
|
2020-12-07 07:45:13 +00:00
|
|
|
homepage = "https://get-ytt.io";
|
|
|
|
license = licenses.asl20;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ brodes techknowlogick ];
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
}
|