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

34 lines
1000 B
Nix
Raw Normal View History

2020-11-27 04:20:00 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, darwin, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "bottom";
2020-12-11 10:39:54 +00:00
version = "0.5.4";
src = fetchFromGitHub {
owner = "ClementTsang";
repo = pname;
rev = version;
2020-12-11 10:39:54 +00:00
sha256 = "1rpwgwgl05n0s89mhyvabzvsa33ibkd1msyrwfll4wbcbsn0ish7";
};
2020-11-27 04:20:00 +00:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
2020-12-11 10:39:54 +00:00
cargoSha256 = "0ykl66gs7k49vfjpw5i8xsbc1blmqm79vrsci2irsl5w642lbig5";
doCheck = false;
2020-11-27 04:20:00 +00:00
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";
license = licenses.mit;
maintainers = with maintainers; [ berbiche ];
platforms = platforms.unix;
};
}