1 { lib, rustPlatform, fetchFromGitHub, installShellFiles, libxcb }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-1OsQT3RMNLQMjr4aA2u5knp/HhOUOJ/oZYHG/+cTQFQ=";
14 cargoHash = "sha256-9xRlm5pWWRRPq6MMwiMADmm8Bg2FqKNSfv7tm1ONiiQ=";
16 nativeBuildInputs = [ installShellFiles ];
18 buildInputs = [ libxcb ];
21 installManPage $releaseDir/../man/kmon.8
22 installShellCompletion $releaseDir/../completions/kmon.{bash,fish} \
23 --zsh $releaseDir/../completions/_kmon
27 description = "Linux Kernel Manager and Activity Monitor";
28 homepage = "https://github.com/orhun/kmon";
29 changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md";
30 license = licenses.gpl3Only;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ figsoda matthiasbeyer ];