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

32 lines
770 B
Nix
Raw Normal View History

2020-10-11 01:38:58 +02:00
{ lib, fetchFromGitHub, rustPlatform, python3, libxcb }:
2020-04-04 22:47:57 +02:00
rustPlatform.buildRustPackage rec {
pname = "kmon";
2021-08-14 12:59:41 +02:00
version = "1.5.5";
2020-04-04 22:47:57 +02:00
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
2021-08-14 12:59:41 +02:00
sha256 = "sha256-x4P9p2zXthGtokfKcWR/xaX/E7a9mEuQiK6cjFw4nS8=";
2020-04-04 22:47:57 +02:00
};
2021-08-14 12:59:41 +02:00
cargoSha256 = "sha256-ZAHp7eR2pu+xEP9NZOLoczEF8QSFA5Z/8bKsCYqk4Ww=";
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-10-11 01:38:58 +02:00
meta = with lib; {
2020-04-04 22:47:57 +02:00
description = "Linux Kernel Manager and Activity Monitor";
homepage = "https://github.com/orhun/kmon";
license = with licenses; [ gpl3 ];
platforms = platforms.linux;
maintainers = with maintainers; [ misuzu ];
};
}