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