Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildGoModule, fetchFromGitHub, installShellFiles,}:
buildGoModule rec { pname = "kustomize"; version = "5.7.1";
ldflags = let t = "sigs.k8s.io/kustomize/api/provenance"; in [ "-s" "-X ${t}.version=${version}" "-X ${t}.gitCommit=${src.rev}" ];
src = fetchFromGitHub { owner = "kubernetes-sigs"; repo = pname; rev = "kustomize/v${version}"; hash = "sha256-eLj9OQlHZph/rI3om6S5/0sYxjgYloUWag2mS0hEpCE="; };
# avoid finding test and development commands modRoot = "kustomize"; proxyVendor = true; vendorHash = "sha256-OodR5WXEEn4ZlVRTsH2uSmuJuP+6PYRLvTEZCenx4XU=";
nativeBuildInputs = [ installShellFiles ];
postInstall = '' installShellCompletion --cmd kustomize \ --bash <($out/bin/kustomize completion bash) \ --fish <($out/bin/kustomize completion fish) \ --zsh <($out/bin/kustomize completion zsh) '';
meta = with lib; { 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 = licenses.asl20; maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime Chili-Man saschagrunert ]; };}