Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "code-generator"; 5 version = "0.25.4"; 6 7 src = fetchFromGitHub { 8 owner = "kubernetes"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-GKF6DXvyZujInOZbV0ePUu71BEl1s/chNTN1PucdIYw="; 12 }; 13 14 vendorHash = "sha256-zjgTtGen6a8TPi/DrwheTS1VQ+hd+KI7UHoyMZ4W4+k="; 15 16 ldflags = [ "-s" "-w" ]; 17 18 meta = with lib; { 19 homepage = "https://github.com/kubernetes/code-generator"; 20 changelog = "https://github.com/kubernetes/code-generator/releases/tag/v${version}"; 21 description = "Kubernetes code generation"; 22 license = licenses.asl20; 23 maintainers = with maintainers; [ urandom ]; 24 }; 25}