Merge pull request #227199 from QJoly/ktop

ktop: init at 0.3.5
This commit is contained in:
Weijia Wang 2023-04-20 13:56:02 +03:00 committed by GitHub
commit 12ab363306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "ktop";
version = "0.3.5";
excludedPackages = [".ci"];
src = fetchFromGitHub {
owner = "vladimirvivien";
repo = pname;
rev = "v${version}";
hash = "sha256-nkIRVt2kqsE9QBYvvHmupohnzH+OBcwWwV16rMePw4I=";
};
vendorHash = "sha256-IiAMmHOq69WMT2B1q9ZV2fGDnLr7AbRm1P7ACSde2FE=";
ldflags = [ "-s" "-w" "-X github.com/vladimirvivien/ktop/buildinfo.Version=v${version}" ];
postInstall = ''
rm $out/bin/hack
'';
doCheck = false;
meta = with lib; {
description = "A top-like tool for your Kubernetes cluster";
longDescription = ''
Following the tradition of Unix/Linux top tools, ktop is a tool that displays useful metrics information about nodes, pods, and other workload resources running in a Kubernetes cluster.
'';
homepage = "https://github.com/vladimirvivien/ktop/";
license = licenses.asl20;
maintainers = with maintainers; [ qjoly ];
};
}

View File

@ -31535,6 +31535,8 @@ with pkgs;
ktunnel = callPackage ../applications/networking/cluster/ktunnel { };
ktop = callPackage ../applications/networking/cluster/ktop { };
pinniped = callPackage ../applications/networking/cluster/pinniped { };
kthxbye = callPackage ../servers/monitoring/prometheus/kthxbye.nix { };