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 02:19:00 +02:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "ytt";
2024-02-07 07:13:50 +01:00
version = "0.48.0";
src = fetchFromGitHub {
owner = "vmware-tanzu";
repo = "carvel-ytt";
rev = "v${version}";
2024-02-07 07:13:50 +01:00
sha256 = "sha256-jHSSccD9jQGR2bblp1J9LQNPiTI47hsjPBmtPVmIRtI=";
};
2023-05-09 10:57:56 +02:00
vendorHash = null;
2023-06-13 02:19:00 +02:00
nativeBuildInputs = [ installShellFiles ];
2022-07-31 14:56:17 +02:00
ldflags = [
"-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=${version}"
];
subPackages = [ "cmd/ytt" ];
2023-06-13 02:19:00 +02: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 20:16:52 +02:00
maintainers = with maintainers; [ brodes techknowlogick ];
};
}