Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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";
};
}