summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-04-20 13:56:02 +0300
committerGitHub <noreply@github.com>2023-04-20 13:56:02 +0300
commit12ab363306168c16ae93369dba09cb314ab17f3e (patch)
treeff1230f986fe35448b25f7849207efa140245c38
parentba0027bc70ae3294250cb662516b6571c3f406c9 (diff)
parent67fcbcf33c93e7dc44ddd6164fddb3db10faf913 (diff)
downloadnixpkgs-12ab363306168c16ae93369dba09cb314ab17f3e.tar
nixpkgs-12ab363306168c16ae93369dba09cb314ab17f3e.tar.gz
nixpkgs-12ab363306168c16ae93369dba09cb314ab17f3e.tar.bz2
nixpkgs-12ab363306168c16ae93369dba09cb314ab17f3e.tar.lz
nixpkgs-12ab363306168c16ae93369dba09cb314ab17f3e.tar.xz
nixpkgs-12ab363306168c16ae93369dba09cb314ab17f3e.tar.zst
nixpkgs-12ab363306168c16ae93369dba09cb314ab17f3e.zip
Merge pull request #227199 from QJoly/ktop
ktop: init at 0.3.5
-rw-r--r--pkgs/applications/networking/cluster/ktop/default.nix33
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/ktop/default.nix b/pkgs/applications/networking/cluster/ktop/default.nix
new file mode 100644
index 00000000000..58fca5221c0
--- /dev/null
+++ b/pkgs/applications/networking/cluster/ktop/default.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 4db46c43165..e40e6813e37 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -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 { };