mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
24123898d2
Closes #99482
32 lines
772 B
Nix
32 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 ];
|
|
};
|
|
}
|