depot/third_party/nixpkgs/pkgs/tools/system/kmon/default.nix
Default email 4a3aa3d7d8 Project import generated by Copybara.
GitOrigin-RevId: 24c9b05ac53e422f1af81a156f1fd58499eb27fb
2020-10-11 14:50:04 +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 ];
};
}