ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / km / kmon / package.nix
blobb432b52ac43c53957fd5e51ccae50d2ae068e228
1 { lib, rustPlatform, fetchFromGitHub, installShellFiles, libxcb }:
3 rustPlatform.buildRustPackage rec {
4   pname = "kmon";
5   version = "1.6.5";
7   src = fetchFromGitHub {
8     owner = "orhun";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-1OsQT3RMNLQMjr4aA2u5knp/HhOUOJ/oZYHG/+cTQFQ=";
12   };
14   cargoHash = "sha256-9xRlm5pWWRRPq6MMwiMADmm8Bg2FqKNSfv7tm1ONiiQ=";
16   nativeBuildInputs = [ installShellFiles ];
18   buildInputs = [ libxcb ];
20   postInstall = ''
21     installManPage $releaseDir/../man/kmon.8
22     installShellCompletion $releaseDir/../completions/kmon.{bash,fish} \
23       --zsh $releaseDir/../completions/_kmon
24   '';
26   meta = with lib; {
27     description = "Linux Kernel Manager and Activity Monitor";
28     homepage = "https://github.com/orhun/kmon";
29     changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md";
30     license = licenses.gpl3Only;
31     platforms = platforms.linux;
32     maintainers = with maintainers; [ figsoda matthiasbeyer ];
33     mainProgram = "kmon";
34   };