acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / kt / ktop / package.nix
blob5dce126d5057ef3dc7d3e16e0699114fbc0d9f24
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "ktop";
5   version = "0.3.7";
6   excludedPackages = [".ci"];
8   src = fetchFromGitHub {
9     owner = "vladimirvivien";
10     repo = pname;
11     rev = "v${version}";
12     hash = "sha256-oxyEkDY53HjBgjWRajlcg+8Kx092lyLkPgOJleioO7o=";
13   };
15   vendorHash = "sha256-MLIcTHWo7lsqtAqH8naSvpS013t8KBVPRbch+CfeUNk=";
16   ldflags = [ "-s" "-w" "-X github.com/vladimirvivien/ktop/buildinfo.Version=v${version}" ];
18   postInstall = ''
19     rm $out/bin/hack
20   '';
22   doCheck = false;
24   meta = with lib; {
25     description = "Top-like tool for your Kubernetes cluster";
26     mainProgram = "ktop";
27     longDescription = ''
28       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.
29     '';
30     homepage = "https://github.com/vladimirvivien/ktop/";
31     license = licenses.asl20;
32     maintainers = with maintainers; [ qjoly ];
33   };