Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "kustomize_3";
5 version = "3.10.0";
6 # rev is the commit of the tag, mainly for kustomize version command output
7 rev = "602ad8aa98e2e17f6c9119e027a09757e63c8bec";
8
9 ldflags = let t = "sigs.k8s.io/kustomize/api/provenance"; in [
10 "-s -w"
11 "-X ${t}.version=${version}"
12 "-X ${t}.gitCommit=${rev}"
13 ];
14
15 src = fetchFromGitHub {
16 owner = "kubernetes-sigs";
17 repo = "kustomize";
18 rev = "kustomize/v${version}";
19 sha256 = "sha256-ESIykbAKXdv8zM9be0zEJ71rBAzZby0aTg25NlCsIOM=";
20 };
21
22 doCheck = true;
23
24 # avoid finding test and development commands
25 sourceRoot = "source/kustomize";
26
27 vendorSha256 = "sha256-xLeetcmzvpILLLMhMx7oahWLxguFjG3qbYpeeWpFUlw=";
28
29 meta = with lib; {
30 description = "Customization of kubernetes YAML configurations";
31 longDescription = ''
32 kustomize lets you customize raw, template-free YAML files for
33 multiple purposes, leaving the original YAML untouched and usable
34 as is.
35 '';
36 homepage = "https://github.com/kubernetes-sigs/kustomize";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ carlosdagos vdemeester zaninime Chili-Man saschagrunert ];
39 mainProgram = "kustomize";
40 };
41}