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