2023-11-18 14:02:38 -07:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
|
2023-08-15 01:48:16 -06:00
|
|
|
|
2024-01-13 17:21:55 -07:00
|
|
|
buildGoModule rec {
|
2023-08-15 01:48:16 -06:00
|
|
|
pname = "kubectl-klock";
|
2024-11-11 04:16:09 -07:00
|
|
|
version = "0.7.2";
|
2023-08-15 01:48:16 -06:00
|
|
|
|
2023-11-18 14:02:38 -07:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2023-08-15 01:48:16 -06:00
|
|
|
src = fetchFromGitHub {
|
2023-11-05 03:53:43 -07:00
|
|
|
owner = "applejag";
|
2023-08-15 01:48:16 -06:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-11-11 04:16:09 -07:00
|
|
|
hash = "sha256-S7cpVRVboLkU+GgvwozJmfFAO29tKpPlk+r9mbVLxF8=";
|
2023-08-15 01:48:16 -06:00
|
|
|
};
|
|
|
|
|
2024-11-11 04:16:09 -07:00
|
|
|
vendorHash = "sha256-xz1I79FklKNpWdoQdzpXYAnKM+7FJcGn04lKH2E9A50=";
|
2023-08-15 01:48:16 -06:00
|
|
|
|
2023-11-18 14:02:38 -07:00
|
|
|
postInstall = ''
|
|
|
|
makeWrapper $out/bin/kubectl-klock $out/bin/kubectl_complete-klock --add-flags __complete
|
|
|
|
'';
|
|
|
|
|
2024-11-11 04:16:09 -07:00
|
|
|
meta = {
|
2023-08-15 01:48:16 -06:00
|
|
|
description = "Kubectl plugin to render watch output in a more readable fashion";
|
2023-11-05 03:53:43 -07:00
|
|
|
homepage = "https://github.com/applejag/kubectl-klock";
|
|
|
|
changelog = "https://github.com/applejag/kubectl-klock/releases/tag/v${version}";
|
2024-11-11 04:16:09 -07:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ scm2342 applejag ];
|
2023-08-15 01:48:16 -06:00
|
|
|
};
|
|
|
|
}
|