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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, DiskArbitration
, Foundation
, IOKit
, installShellFiles
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "bottom";
2022-02-02 21:40:16 +01:00
version = "0.6.8";
src = fetchFromGitHub {
owner = "ClementTsang";
repo = pname;
rev = version;
2022-02-02 21:40:16 +01:00
sha256 = "sha256-zmiYVLaXKHH+MObO75wOiGkDetKy4bVLe7IAqiO2ER8=";
};
2020-12-20 02:57:09 +01:00
prePatch = ''
rm .cargo/config.toml
'';
2020-11-27 05:20:00 +01:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
DiskArbitration
Foundation
IOKit
libiconv
];
2022-02-02 21:40:16 +01:00
cargoSha256 = "sha256-GMG6YBm/jA5D7wxC2gczMn/6Lkqiq/toSPNf86kgOys=";
doCheck = false;
2020-11-27 05:20:00 +01:00
postInstall = ''
installShellCompletion $releaseDir/build/bottom-*/out/btm.{bash,fish} --zsh $releaseDir/build/bottom-*/out/_btm
'';
meta = with 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;
2021-05-09 04:42:26 +02:00
mainProgram = "btm";
};
}