2021-11-05 20:20:10 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, python3, libxcb }:
|
2020-04-04 20:47:57 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kmon";
|
2021-11-05 20:20:10 +00:00
|
|
|
version = "1.6.0";
|
2020-04-04 20:47:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-05 20:20:10 +00:00
|
|
|
sha256 = "sha256-0sjRTbTLtBUTyx6+HnihL9TggoeIOqX9zKRaXjBUfE0=";
|
2020-04-04 20:47:57 +00:00
|
|
|
};
|
|
|
|
|
2021-11-05 20:20:10 +00:00
|
|
|
cargoSha256 = "sha256-QMJ3Rpgcfrza2zFiA5LFBuYedn+VnffzpyzAGeC0PSM=";
|
2020-04-04 20:47:57 +00:00
|
|
|
|
2021-11-05 20:20:10 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles python3 ];
|
2020-04-04 20:47:57 +00:00
|
|
|
|
|
|
|
buildInputs = [ libxcb ];
|
|
|
|
|
2020-04-08 15:44:50 +00:00
|
|
|
postInstall = ''
|
2021-11-05 20:20:10 +00:00
|
|
|
installManPage man/kmon.8
|
2020-04-08 15:44:50 +00:00
|
|
|
'';
|
|
|
|
|
2020-10-10 23:38:58 +00:00
|
|
|
meta = with lib; {
|
2020-04-04 20:47:57 +00:00
|
|
|
description = "Linux Kernel Manager and Activity Monitor";
|
|
|
|
homepage = "https://github.com/orhun/kmon";
|
2021-11-05 20:20:10 +00:00
|
|
|
changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Only;
|
2020-04-04 20:47:57 +00:00
|
|
|
platforms = platforms.linux;
|
2021-11-05 20:20:10 +00:00
|
|
|
maintainers = with maintainers; [ figsoda misuzu ];
|
2020-04-04 20:47:57 +00:00
|
|
|
};
|
|
|
|
}
|