nixpkgs/pkgs/tools/system/kmon/default.nix
2020-07-24 03:26:45 +00:00

31 lines
782 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform, python3, libxcb }:
rustPlatform.buildRustPackage rec {
pname = "kmon";
version = "1.3.0";
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
sha256 = "0487blp5l82jscpf9m76cq5prvclg5ngvdgi500jh7vrrxxawnh4";
};
cargoSha256 = "1dfvkn1sw22csg635kl4mmcxb6c5bvc5aw370iicy9hwlkk7cqpd";
nativeBuildInputs = [ python3 ];
buildInputs = [ libxcb ];
postInstall = ''
install -D man/kmon.8 -t $out/share/man/man8/
'';
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 ];
};
}