1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/system/bottom/default.nix

38 lines
1 KiB
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-20 00:39:13 +00:00
version = "0.5.6";
src = fetchFromGitHub {
owner = "ClementTsang";
repo = pname;
rev = version;
2020-12-20 00:39:13 +00:00
sha256 = "sha256-88uEEsb+coX8PTKrem+0t5AkamCmqJsFYsENFTZSsys=";
};
2020-12-20 01:57:09 +00:00
prePatch = ''
rm .cargo/config.toml
'';
2020-11-27 04:20:00 +00:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
2020-12-20 00:39:13 +00:00
cargoSha256 = "sha256-qnh4Tl6JRgxBJbu+t9IJX/XChIR15rTRLvsl+/ZvPxY=";
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;
};
}