nixpkgs/pkgs/tools/system/kmon/default.nix
Sandro Jäckel 24123898d2
kmon: 1.4.0 -> 1.5.1
Closes #99482
2020-10-11 01:46:21 +02:00

31 lines
772 B
Nix

{ lib, fetchFromGitHub, rustPlatform, python3, libxcb }:
rustPlatform.buildRustPackage rec {
pname = "kmon";
version = "1.5.1";
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
sha256 = "0j6w4rg2gybcy1cv812qixravy0z0xpp33snrng11q802zq3mkmq";
};
cargoSha256 = "0x5s3yi5bv3h1k54lrgcvkpdkmfphvwhnrmk5lmk6xd9pxfh218p";
nativeBuildInputs = [ python3 ];
buildInputs = [ libxcb ];
postInstall = ''
install -D man/kmon.8 -t $out/share/man/man8/
'';
meta = with 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 ];
};
}