1 { lib, buildGoModule, fetchFromGitHub, fetchpatch }:
4 pname = "kubectl-doctor";
7 src = fetchFromGitHub {
11 hash = "sha256-yp5OfSDxIASiCgISUVNxfe3dsLukgIoHARVPALIaQfY=";
16 # https://github.com/emirozer/kubectl-doctor/pull/21
17 name = "go-1.19-client-go-0.25.patch";
18 url = "https://github.com/emirozer/kubectl-doctor/commit/a987ef58063e305409034af280d688a11682dbb9.patch";
19 hash = "sha256-NQd/WxUfYwBDowhnoUWaOV8k7msiOhff3Bjux+a9R9E=";
23 vendorHash = "sha256-qhffg/s1RZFNW0nHLbJ89yqLzdC72ARXdbSfMLJK2pQ=";
26 mv $out/bin/{cmd,kubectl-doctor}
30 description = "kubectl cluster triage plugin for k8s";
31 mainProgram = "kubectl-doctor";
32 homepage = "https://github.com/emirozer/kubectl-doctor";
33 changelog = "https://github.com/emirozer/kubectl-doctor/releases/tag/v${version}";
34 license = licenses.asl20;
35 maintainers = [ maintainers.zimbatm ];