2020-04-04 21:47:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, python3, libxcb }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kmon";
|
2020-08-02 05:19:00 +01:00
|
|
|
version = "1.3.5";
|
2020-04-04 21:47:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-02 05:19:00 +01:00
|
|
|
sha256 = "1jbp1pd1xlbj5jzz7v2zmrzik45z91ddpvaxazjwcbqmw6hn732q";
|
2020-04-04 21:47:57 +01:00
|
|
|
};
|
|
|
|
|
2020-08-02 05:19:00 +01:00
|
|
|
cargoSha256 = "17srf1krknabqprjilk76mmvjq284zf138gf15vybsbjd9dkpals";
|
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-04-04 21:47:57 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Linux Kernel Manager and Activity Monitor";
|
|
|
|
homepage = "https://github.com/orhun/kmon";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
};
|
|
|
|
}
|