Files
nixpkgs/pkgs/development/tools/kustomize/default.nix
T
Michael Daniels fa9a1e0bd4 maintainers: remove periklis
No nixpkgs activity in the past year.

Has not responded in issues they were pinged in for two years, per Aleksanaa
(I have not verified this myself):
https://github.com/NixOS/nixpkgs/issues?q=sort%3Acreated-desc%20is%3Aissue%20involves%3Aperiklis.

I also removed "with lib;" from meta where I saw it.
2025-12-11 17:34:01 -05:00

73 lines
1.8 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
kustomize,
testers,
}:
buildGoModule (finalAttrs: {
pname = "kustomize";
version = "5.8.0";
ldflags =
let
t = "sigs.k8s.io/kustomize/api/provenance";
in
[
"-s"
"-X ${t}.version=v${finalAttrs.version}" # add 'v' prefix to match official releases
"-X ${t}.gitCommit=${finalAttrs.src.rev}"
];
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = "kustomize";
rev = "kustomize/v${finalAttrs.version}";
hash = "sha256-BOM0m/bigELUf6xHjLbI8wzSscF0lhwCjIxa87xBbWM=";
};
# avoid finding test and development commands
modRoot = "kustomize";
proxyVendor = true;
vendorHash = "sha256-kwvfxHXL189PSK7+PnOr+1TSjuX3uHkV4VnG3gSW5v0=";
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd kustomize \
--bash <($out/bin/kustomize completion bash) \
--fish <($out/bin/kustomize completion fish) \
--zsh <($out/bin/kustomize completion zsh)
'';
passthru.tests = {
versionCheck = testers.testVersion {
command = "${finalAttrs.meta.mainProgram} version";
version = "v${finalAttrs.version}";
package = kustomize;
};
};
meta = {
description = "Customization of kubernetes YAML configurations";
mainProgram = "kustomize";
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [
carlosdagos
vdemeester
zaninime
Chili-Man
saschagrunert
];
};
})