2020-10-11 00:38:58 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, python3, libxcb }:
|
2020-04-04 21:47:57 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kmon";
|
2021-01-19 22:06:02 +00:00
|
|
|
version = "1.5.3";
|
2020-04-04 21:47:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-19 22:06:02 +00:00
|
|
|
sha256 = "sha256-2cP3kZnjlMmN3nWRPh1M+hk+dyssGNpJjlluDsm702g=";
|
2020-04-04 21:47:57 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 22:06:02 +00:00
|
|
|
cargoSha256 = "sha256-JFDtmi10iCK66/2ovg8tGAgGDW8Y4b5IYkSbDqu0PmQ=";
|
2020-04-04 21:47:57 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
|
|
|
|
|
|
buildInputs = [ libxcb ];
|
|
|
|
|
2020-04-08 16:44:50 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -D man/kmon.8 -t $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
2020-10-11 00:38:58 +01:00
|
|
|
meta = with lib; {
|
2020-04-04 21:47:57 +01:00
|
|
|
description = "Linux Kernel Manager and Activity Monitor";
|
|
|
|
homepage = "https://github.com/orhun/kmon";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
};
|
|
|
|
}
|