1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 23:24:35 +00:00
nixpkgs/pkgs/tools/system/kmon/default.nix
2021-01-19 22:06:02 +00:00

32 lines
770 B
Nix

{ lib, fetchFromGitHub, rustPlatform, python3, libxcb }:
rustPlatform.buildRustPackage rec {
pname = "kmon";
version = "1.5.3";
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
sha256 = "sha256-2cP3kZnjlMmN3nWRPh1M+hk+dyssGNpJjlluDsm702g=";
};
cargoSha256 = "sha256-JFDtmi10iCK66/2ovg8tGAgGDW8Y4b5IYkSbDqu0PmQ=";
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 ];
};
}