about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/ktop
diff options
context:
space:
mode:
authorQJoly <quentinjoly@thoughtless.eu>2023-04-20 10:22:33 +0200
committerQJoly <quentinjoly@thoughtless.eu>2023-04-20 10:22:33 +0200
commit67fcbcf33c93e7dc44ddd6164fddb3db10faf913 (patch)
treeabb21424b0fb174eaab906fb63041a1c756a4b3c /pkgs/applications/networking/cluster/ktop
parent5608f9dbad40f3a0495a351eceb8c4debb9e6099 (diff)
ktop: init at 0.3.5
Diffstat (limited to 'pkgs/applications/networking/cluster/ktop')
-rw-r--r--pkgs/applications/networking/cluster/ktop/default.nix33
1 files changed, 33 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 0000000000000..58fca5221c0dd
--- /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 ];
+  };
+}