nixpkgs/pkgs/applications/networking/cluster/kubectl-doctor/default.nix

28 lines
717 B
Nix
Raw Normal View History

2021-03-16 08:56:12 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kubectl-doctor";
version = "0.3.1";
2021-03-16 08:56:12 +00:00
src = fetchFromGitHub {
owner = "emirozer";
repo = pname;
rev = version;
sha256 = "sha256-yp5OfSDxIASiCgISUVNxfe3dsLukgIoHARVPALIaQfY=";
2021-03-16 08:56:12 +00:00
};
vendorSha256 = "sha256-pdg65q7iMkcpFvSVUTa07m5URLQNNEfWQ4mdGu4suBM=";
2021-03-16 08:56:12 +00:00
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 ];
};
}