45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitHub,
|
||
|
|
installShellFiles,
|
||
|
|
libxcb,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "kmon";
|
||
|
|
version = "1.7.1";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "orhun";
|
||
|
|
repo = "kmon";
|
||
|
|
rev = "v${version}";
|
||
|
|
sha256 = "sha256-DzbbeVZifuxgmIu3yNv6EI7Jyh8MA0/oSaR5IEPNUN8=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-B1sxbifMTnr6tLZCAuxVlQPL5oKCUL0wtw3/wOyfyyw=";
|
||
|
|
|
||
|
|
nativeBuildInputs = [ installShellFiles ];
|
||
|
|
|
||
|
|
buildInputs = [ libxcb ];
|
||
|
|
|
||
|
|
postInstall = ''
|
||
|
|
installManPage $releaseDir/../man/kmon.8
|
||
|
|
installShellCompletion $releaseDir/../completions/kmon.{bash,fish} \
|
||
|
|
--zsh $releaseDir/../completions/_kmon
|
||
|
|
'';
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Linux Kernel Manager and Activity Monitor";
|
||
|
|
homepage = "https://github.com/orhun/kmon";
|
||
|
|
changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md";
|
||
|
|
license = lib.licenses.gpl3Only;
|
||
|
|
platforms = lib.platforms.linux;
|
||
|
|
maintainers = with lib.maintainers; [
|
||
|
|
figsoda
|
||
|
|
matthiasbeyer
|
||
|
|
];
|
||
|
|
mainProgram = "kmon";
|
||
|
|
};
|
||
|
|
}
|