forked from mirrors/nixpkgs
34 lines
1,000 B
Nix
34 lines
1,000 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, darwin, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bottom";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ClementTsang";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1rpwgwgl05n0s89mhyvabzvsa33ibkd1msyrwfll4wbcbsn0ish7";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
|
|
|
|
cargoSha256 = "0ykl66gs7k49vfjpw5i8xsbc1blmqm79vrsci2irsl5w642lbig5";
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ berbiche ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|