3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/kmon/default.nix

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

33 lines
868 B
Nix
Raw Normal View History

2021-11-05 20:20:10 +00:00
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, python3, libxcb }:
2020-04-04 21:47:57 +01:00
rustPlatform.buildRustPackage rec {
pname = "kmon";
2021-11-05 20:20:10 +00:00
version = "1.6.0";
2020-04-04 21:47:57 +01:00
src = fetchFromGitHub {
owner = "orhun";
repo = pname;
rev = "v${version}";
2021-11-05 20:20:10 +00:00
sha256 = "sha256-0sjRTbTLtBUTyx6+HnihL9TggoeIOqX9zKRaXjBUfE0=";
2020-04-04 21:47:57 +01:00
};
2021-11-05 20:20:10 +00:00
cargoSha256 = "sha256-QMJ3Rpgcfrza2zFiA5LFBuYedn+VnffzpyzAGeC0PSM=";
2020-04-04 21:47:57 +01:00
2021-11-05 20:20:10 +00:00
nativeBuildInputs = [ installShellFiles python3 ];
2020-04-04 21:47:57 +01:00
buildInputs = [ libxcb ];
2020-04-08 16:44:50 +01:00
postInstall = ''
2021-11-05 20:20:10 +00:00
installManPage man/kmon.8
2020-04-08 16:44:50 +01:00
'';
2020-10-11 00:38:58 +01:00
meta = with lib; {
2020-04-04 21:47:57 +01: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 21:47:57 +01:00
platforms = platforms.linux;
2021-11-05 20:20:10 +00:00
maintainers = with maintainers; [ figsoda misuzu ];
2020-04-04 21:47:57 +01:00
};
}