lol
at 24.05-pre 37 lines 991 B view raw
1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 3buildGoModule rec { 4 pname = "ytt"; 5 version = "0.46.2"; 6 7 src = fetchFromGitHub { 8 owner = "vmware-tanzu"; 9 repo = "carvel-ytt"; 10 rev = "v${version}"; 11 sha256 = "sha256-r9LQMQffnc/g1WFJU8m+Oy0hD+DudCNiVAcbAAPy1vI="; 12 }; 13 14 vendorHash = null; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 ldflags = [ 19 "-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=${version}" 20 ]; 21 22 subPackages = [ "cmd/ytt" ]; 23 24 postInstall = '' 25 installShellCompletion --cmd ytt \ 26 --bash <($out/bin/ytt completion bash) \ 27 --fish <($out/bin/ytt completion fish) \ 28 --zsh <($out/bin/ytt completion zsh) 29 ''; 30 31 meta = with lib; { 32 description = "YAML templating tool that allows configuration of complex software via reusable templates with user-provided values"; 33 homepage = "https://get-ytt.io"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ brodes techknowlogick ]; 36 }; 37}