nixpkgs/pkgs/tools/system/kmon/default.nix

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

35 lines
984 B
Nix
Raw Normal View History

2022-10-02 17:40:01 +00:00
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, libxcb }:
2020-04-04 20:47:57 +00:00
rustPlatform.buildRustPackage rec {
pname = "kmon";
version = "1.6.3";
2020-04-04 20:47:57 +00:00
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
sha256 = "sha256-lB6vJqb6/Qwj3odCJzyQ0+xEl5V/ZPj9cAJGNfiYAOY=";
2020-04-04 20:47:57 +00:00
};
cargoSha256 = "sha256-Ff5vGc90VxmyKQSsjUfoI1NL95DmD1SJx3eC1SP6rt4=";
2020-04-04 20:47:57 +00:00
2022-10-02 17:40:01 +00:00
nativeBuildInputs = [ installShellFiles ];
2020-04-04 20:47:57 +00:00
buildInputs = [ libxcb ];
2020-04-08 15:44:50 +00:00
postInstall = ''
2022-10-02 17:40:01 +00:00
installManPage $releaseDir/../man/kmon.8
installShellCompletion $releaseDir/../completions/kmon.{bash,fish} \
--zsh $releaseDir/../completions/_kmon
2020-04-08 15:44:50 +00:00
'';
2020-10-10 23:38:58 +00:00
meta = with lib; {
2020-04-04 20:47:57 +00:00
description = "Linux Kernel Manager and Activity Monitor";
homepage = "https://github.com/orhun/kmon";
2021-11-05 20:20:10 +00:00
changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3Only;
2020-04-04 20:47:57 +00:00
platforms = platforms.linux;
2021-11-05 20:20:10 +00:00
maintainers = with maintainers; [ figsoda misuzu ];
2020-04-04 20:47:57 +00:00
};
}