6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bottom";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ClementTsang";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-g9MkS1ps4RTEvuZP9oJize+Uz7W6uCNNks+HjO771QU=";
|
|
};
|
|
|
|
cargoHash = "sha256-wVvGj58dmpLH+zMu9e/TQ7gTvwmgYIYX5MrVcnOMu/A=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.Foundation
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
installManPage target/tmp/bottom/manpage/btm.1
|
|
installShellCompletion \
|
|
target/tmp/bottom/completion/btm.{bash,fish} \
|
|
--zsh target/tmp/bottom/completion/_btm
|
|
'';
|
|
|
|
BTM_GENERATE = true;
|
|
|
|
meta = with lib; {
|
|
description = "A cross-platform graphical process/system monitor with a customizable interface";
|
|
homepage = "https://github.com/ClementTsang/bottom";
|
|
changelog = "https://github.com/ClementTsang/bottom/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ berbiche figsoda ];
|
|
mainProgram = "btm";
|
|
};
|
|
}
|