nixpkgs/pkgs/development/tools/ytt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
991 B
Nix
Raw Normal View History

2023-06-13 00:19:00 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "ytt";
version = "0.46.0";
src = fetchFromGitHub {
owner = "vmware-tanzu";
repo = "carvel-ytt";
rev = "v${version}";
sha256 = "sha256-ZCWdOvwWXSeFzRQiiObuJqvz0ngAJ8n/0LeoGCv2vu4=";
};
2023-05-09 08:57:56 +00:00
vendorHash = null;
2023-06-13 00:19:00 +00:00
nativeBuildInputs = [ installShellFiles ];
2022-07-31 12:56:17 +00:00
ldflags = [
"-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=${version}"
];
subPackages = [ "cmd/ytt" ];
2023-06-13 00:19:00 +00:00
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";
license = licenses.asl20;
2022-05-26 18:16:52 +00:00
maintainers = with maintainers; [ brodes techknowlogick ];
};
}