nixpkgs/pkgs/by-name/ku/kubectl-klock/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
869 B
Nix
Raw Permalink Normal View History

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";
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 {
owner = "applejag";
2023-08-15 01:48:16 -06:00
repo = pname;
rev = "v${version}";
hash = "sha256-S7cpVRVboLkU+GgvwozJmfFAO29tKpPlk+r9mbVLxF8=";
2023-08-15 01:48:16 -06: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
'';
meta = {
2023-08-15 01:48:16 -06:00
description = "Kubectl plugin to render watch output in a more readable fashion";
homepage = "https://github.com/applejag/kubectl-klock";
changelog = "https://github.com/applejag/kubectl-klock/releases/tag/v${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ scm2342 applejag ];
2023-08-15 01:48:16 -06:00
};
}