1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/tools/system/bottom/default.nix
2020-12-11 10:39:54 +00:00

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;
};
}