blob: ab96d337ee960abc4220a5ab4700af97df9de17f (
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 }:
buildGoModule rec {
pname = "kubectl-ktop";
version = "0.3.6";
src = fetchFromGitHub {
owner = "vladimirvivien";
repo = "ktop";
rev = "v${version}";
sha256 = "sha256-nVZ1e/GKiJFTwuq5dPIzF4Jrv2DJ2wwWAiOn304hTA4=";
};
vendorHash = "sha256-MLIcTHWo7lsqtAqH8naSvpS013t8KBVPRbch+CfeUNk=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X github.com/vladimirvivien/ktop/buildinfo.Version=v${version}"
"-X github.com/vladimirvivien/ktop/buildinfo.GitSHA=${src.rev}"
];
postInstall = ''
ln -s $out/bin/ktop $out/bin/kubectl-ktop
'';
meta = with lib; {
description = "Top-like tool for your Kubernetes clusters";
homepage = "https://github.com/vladimirvivien/ktop";
changelog = "https://github.com/vladimirvivien/ktop/releases/tag/v${version}";
license = licenses.asl20;
maintainers = [ maintainers.ivankovnatsky ];
};
}
|