at master 42 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "ktop"; 9 version = "0.4.1"; 10 excludedPackages = [ ".ci" ]; 11 12 src = fetchFromGitHub { 13 owner = "vladimirvivien"; 14 repo = "ktop"; 15 rev = "v${version}"; 16 hash = "sha256-5iFFYTZq5DcMYVnW90MKVDchVXzjXOPd5BeYcrqL9pQ="; 17 }; 18 19 vendorHash = "sha256-qNrjyMMsFE2FmIJc46fYq08b3XFFZeLlspth5anjMm8="; 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X github.com/vladimirvivien/ktop/buildinfo.Version=v${version}" 24 ]; 25 26 postInstall = '' 27 rm $out/bin/hack 28 ''; 29 30 doCheck = false; 31 32 meta = with lib; { 33 description = "Top-like tool for your Kubernetes cluster"; 34 mainProgram = "ktop"; 35 longDescription = '' 36 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. 37 ''; 38 homepage = "https://github.com/vladimirvivien/ktop/"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ qjoly ]; 41 }; 42}