2022-04-15 01:41:22 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kustomize";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "5.3.0";
|
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}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-TleO28Q6JaOz1OAJKbvLhN99a841FEhHL15NTMhS1Oc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# avoid finding test and development commands
|
2022-04-15 01:41:22 +00:00
|
|
|
modRoot = "kustomize";
|
2023-05-24 13:37:59 +00:00
|
|
|
proxyVendor = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-6+8cwRH37lkQvnHBUlSqyNrZMfDpKbeUNJS4YMflBq0=";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|