about summary refs log tree commit diff
path: root/pkgs/tools/system/kmon
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-10-02 13:40:01 -0400
committerfigsoda <figsoda@pm.me>2022-10-02 13:40:01 -0400
commita64652f25e53cd973e50369753d2d63060de55ef (patch)
tree534c358342c3048954212be77b1a8e28a482ab0c /pkgs/tools/system/kmon
parent1711edb3c8510b2fa00124932c5ab33948382c22 (diff)
kmon: 1.6.0 -> 1.6.2
Diffstat (limited to 'pkgs/tools/system/kmon')
-rw-r--r--pkgs/tools/system/kmon/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/tools/system/kmon/default.nix b/pkgs/tools/system/kmon/default.nix
index 36181b371eaf9..6f54579132f50 100644
--- a/pkgs/tools/system/kmon/default.nix
+++ b/pkgs/tools/system/kmon/default.nix
@@ -1,24 +1,26 @@
-{ lib, rustPlatform, fetchFromGitHub, installShellFiles, python3, libxcb }:
+{ lib, rustPlatform, fetchFromGitHub, installShellFiles, libxcb }:
 
 rustPlatform.buildRustPackage rec {
   pname = "kmon";
-  version = "1.6.0";
+  version = "1.6.2";
 
   src = fetchFromGitHub {
     owner = "orhun";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-0sjRTbTLtBUTyx6+HnihL9TggoeIOqX9zKRaXjBUfE0=";
+    sha256 = "sha256-LJ8vfjSUaNZQAtv9TXAZf1JMRzB1yN8/qbXphRUJVYY=";
   };
 
-  cargoSha256 = "sha256-QMJ3Rpgcfrza2zFiA5LFBuYedn+VnffzpyzAGeC0PSM=";
+  cargoSha256 = "sha256-5OUc2e1fMlSArKMCANqtRCAh21iPjzuGjGrEP8/hQXk=";
 
-  nativeBuildInputs = [ installShellFiles python3 ];
+  nativeBuildInputs = [ installShellFiles ];
 
   buildInputs = [ libxcb ];
 
   postInstall = ''
-    installManPage man/kmon.8
+    installManPage $releaseDir/../man/kmon.8
+    installShellCompletion $releaseDir/../completions/kmon.{bash,fish} \
+      --zsh $releaseDir/../completions/_kmon
   '';
 
   meta = with lib; {