mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-14 08:04:47 +00:00
![stuebinm](/assets/img/avatar_default.png)
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
39 lines
1016 B
Nix
39 lines
1016 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ytt";
|
|
version = "0.48.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware-tanzu";
|
|
repo = "carvel-ytt";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-jHSSccD9jQGR2bblp1J9LQNPiTI47hsjPBmtPVmIRtI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|