blob: e198de456cca379ebc7e411e71a0f60859280d5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoModule rec {
pname = "kubectl-doctor";
version = "0.3.1";
src = fetchFromGitHub {
owner = "emirozer";
repo = pname;
rev = version;
sha256 = "sha256-yp5OfSDxIASiCgISUVNxfe3dsLukgIoHARVPALIaQfY=";
};
patches = [
(fetchpatch {
# https://github.com/emirozer/kubectl-doctor/pull/21
name = "go-1.19-client-go-0.25.patch";
url = "https://github.com/emirozer/kubectl-doctor/commit/a987ef58063e305409034af280d688a11682dbb9.patch";
sha256 = "sha256-NQd/WxUfYwBDowhnoUWaOV8k7msiOhff3Bjux+a9R9E=";
})
];
vendorHash = "sha256-qhffg/s1RZFNW0nHLbJ89yqLzdC72ARXdbSfMLJK2pQ=";
postInstall = ''
mv $out/bin/{cmd,kubectl-doctor}
'';
meta = with lib; {
description = "kubectl cluster triage plugin for k8s";
homepage = "https://github.com/emirozer/kubectl-doctor";
changelog = "https://github.com/emirozer/kubectl-doctor/releases/tag/v${version}";
license = licenses.asl20;
maintainers = [ maintainers.zimbatm ];
};
}
|