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