nixpkgs/pkgs/tools/system/kmon/default.nix

32 lines
782 B
Nix
Raw Normal View History

2020-04-04 22:47:57 +02:00
{ stdenv, fetchFromGitHub, rustPlatform, python3, libxcb }:
rustPlatform.buildRustPackage rec {
pname = "kmon";
2020-04-20 17:12:02 +02:00
version = "1.1.0";
2020-04-04 22:47:57 +02:00
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
2020-04-20 17:12:02 +02:00
sha256 = "0lpwp5fzlf037bn03x1dldw8nfa5pyqi4qsqbscwn42idvs94mhx";
2020-04-04 22:47:57 +02:00
};
2020-04-20 17:12:02 +02:00
cargoSha256 = "1g5k6dkv0zznh8q359n7sg9wf0gcix6m36pg9ql8wi5hnlsvg1s1";
2020-04-04 22:47:57 +02:00
nativeBuildInputs = [ python3 ];
buildInputs = [ libxcb ];
2020-04-08 17:44:50 +02:00
postInstall = ''
install -D man/kmon.8 -t $out/share/man/man8/
'';
2020-04-04 22:47:57 +02: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 ];
};
}