aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-11-27 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2020-11-27 04:20:00 +0000
commitb07f6b10243d7c2398edec56342cf83ca5cfa384 (patch)
tree10c3b74b31299fadb2744eebecb0df16924932ad /pkgs/tools/system
parent5b48bc8aae913c00b91968c47999cec725656c36 (diff)
bottom: install completions
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/bottom/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/system/bottom/default.nix b/pkgs/tools/system/bottom/default.nix
index 12367949e9e8..8c5e2833212c 100644
--- a/pkgs/tools/system/bottom/default.nix
+++ b/pkgs/tools/system/bottom/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform, darwin }:
+{ stdenv, fetchFromGitHub, rustPlatform, darwin, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "bottom";
@@ -11,12 +11,18 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-Gc2bL7KqDqab0hCCOi2rtEw+5r0bSETzTipLLdX/ipk=";
};
+ nativeBuildInputs = [ installShellFiles ];
+
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
cargoSha256 = "sha256-Bdkq3cTuziTQ7/BkvuBHbfuxRIXnz4h2OadoAGNTBc0=";
doCheck = false;
+ postInstall = ''
+ installShellCompletion $releaseDir/build/bottom-*/out/btm.{bash,fish} --zsh $releaseDir/build/bottom-*/out/_btm
+ '';
+
meta = with stdenv.lib; {
description = "A cross-platform graphical process/system monitor with a customizable interface";
homepage = "https://github.com/ClementTsang/bottom";
@@ -25,4 +31,3 @@ rustPlatform.buildRustPackage rec {
platforms = platforms.unix;
};
}
-