2022-10-06 18:32:54 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, libxcb }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kmon";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.6.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-61HLWSGACnonjp/n14sVo8DdVOUbOpIQHpPL0PmKmpI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoSha256 = "sha256-yxpM4aUPVfaMuYwj50C/Uwh/diraJLON1mNjuYJR6Ck=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ libxcb ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2022-10-06 18:32:54 +00:00
|
|
|
installManPage $releaseDir/../man/kmon.8
|
|
|
|
installShellCompletion $releaseDir/../completions/kmon.{bash,fish} \
|
|
|
|
--zsh $releaseDir/../completions/_kmon
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Linux Kernel Manager and Activity Monitor";
|
|
|
|
homepage = "https://github.com/orhun/kmon";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ figsoda misuzu matthiasbeyer ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|