Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
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";
|
|
};
|
|
}
|