f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
38 lines
1,016 B
Nix
38 lines
1,016 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ytt";
|
|
version = "0.50.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware-tanzu";
|
|
repo = "carvel-ytt";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-57SCBlA2IoBy0iygqunFPBS/nyLtl7e7GlA3vB+ED/4=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "ytt";
|
|
homepage = "https://get-ytt.io";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ brodes techknowlogick ];
|
|
};
|
|
}
|