2022-04-15 01:41:22 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kustomize";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "4.5.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = let t = "sigs.k8s.io/kustomize/api/provenance"; in
|
|
|
|
[
|
|
|
|
"-s"
|
|
|
|
"-X ${t}.version=${version}"
|
2022-04-15 01:41:22 +00:00
|
|
|
"-X ${t}.gitCommit=${src.rev}"
|
2021-08-27 14:25:00 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
repo = pname;
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "kustomize/v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-7Ode+ONgWJRNSbIpvIjhuT+oVvZgJfByFqS/iSUhcXw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# avoid finding test and development commands
|
2022-04-15 01:41:22 +00:00
|
|
|
modRoot = "kustomize";
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-beIbeY/+k2NgotGw5zQFkYuqMKlwctoxuToZfiFlCm4=";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd kustomize \
|
|
|
|
--bash <($out/bin/kustomize completion bash) \
|
|
|
|
--fish <($out/bin/kustomize completion fish) \
|
|
|
|
--zsh <($out/bin/kustomize completion zsh)
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Customization of kubernetes YAML configurations";
|
|
|
|
longDescription = ''
|
|
|
|
kustomize lets you customize raw, template-free YAML files for
|
|
|
|
multiple purposes, leaving the original YAML untouched and usable
|
|
|
|
as is.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/kubernetes-sigs/kustomize";
|
|
|
|
license = licenses.asl20;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime Chili-Man saschagrunert ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|