1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
8 owner = "kubernetes-sigs";
10 rev = "kustomize/v${version}";
11 hash = "sha256-AHDUwXcYkI04nOBY8jScf+OE6k9Z5OqzhtWExK1rrKg=";
14 # rev is the commit of the tag, mainly for kustomize version command output
15 rev = "56d82a8378dfc8dc3b3b1085e5a6e67b82966bd7";
16 ldflags = let t = "sigs.k8s.io/kustomize/api/provenance"; in
19 "-X ${t}.version=${version}"
20 "-X ${t}.gitCommit=${rev}"
23 # avoid finding test and development commands
24 modRoot = "kustomize";
26 vendorHash = "sha256-9+k0Me5alZDNC27Mx0Q6vp0B2SEa+Qy0FoLSr/Rahkc=";
28 nativeBuildInputs = [ installShellFiles ];
31 installShellCompletion --cmd kustomize \
32 --bash <($out/bin/kustomize completion bash) \
33 --fish <($out/bin/kustomize completion fish) \
34 --zsh <($out/bin/kustomize completion zsh)
38 description = "Customization of kubernetes YAML configurations";
40 kustomize lets you customize raw, template-free YAML files for
41 multiple purposes, leaving the original YAML untouched and usable
44 homepage = "https://github.com/kubernetes-sigs/kustomize";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime Chili-Man saschagrunert ];