summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-01-06 12:11:55 -0500
committerfigsoda <figsoda@pm.me>2023-01-06 12:20:25 -0500
commitea13dd11148705d726fe408dfe90a8530ab5aa55 (patch)
treeb2e6608e813e8d0b58e69431930e911c3c181c48
parentda5457163cb0ed3e2ecdf2ffe75b245e54a9e327 (diff)
bottom: 0.7.0 -> 0.7.1, add figsoda as a maintainer
Diff: https://github.com/ClementTsang/bottom/compare/0.7.0...0.7.1 Changelog: https://github.com/ClementTsang/bottom/blob/0.7.1/CHANGELOG.md
-rw-r--r--pkgs/tools/system/bottom/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 16 insertions, 23 deletions
diff --git a/pkgs/tools/system/bottom/default.nix b/pkgs/tools/system/bottom/default.nix
index f8f55507dc80..08b15bc4c9dc 100644
--- a/pkgs/tools/system/bottom/default.nix
+++ b/pkgs/tools/system/bottom/default.nix
@@ -1,52 +1,47 @@
{ lib
-, stdenv
-, fetchFromGitHub
, rustPlatform
-, DiskArbitration
-, Foundation
-, IOKit
+, fetchFromGitHub
, installShellFiles
-, libiconv
+, stdenv
+, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "bottom";
- version = "0.7.0";
+ version = "0.7.1";
src = fetchFromGitHub {
owner = "ClementTsang";
repo = pname;
rev = version;
- sha256 = "sha256-rCjRuRVa4ewyHcYpF8FPpuOsJ1ppB5C/Y7L+ju35+cI=";
+ sha256 = "sha256-g9MkS1ps4RTEvuZP9oJize+Uz7W6uCNNks+HjO771QU=";
};
- prePatch = ''
- rm .cargo/config.toml
- '';
+ cargoHash = "sha256-wVvGj58dmpLH+zMu9e/TQ7gTvwmgYIYX5MrVcnOMu/A=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
- DiskArbitration
- Foundation
- IOKit
- libiconv
+ darwin.apple_sdk.frameworks.Foundation
];
- cargoHash = "sha256-c0zBLTcvIuNM9s7p3zIFbd4hB8WkMzCJW+Y/1Swrxlk=";
-
doCheck = false;
postInstall = ''
- installShellCompletion $releaseDir/build/bottom-*/out/btm.{bash,fish} --zsh $releaseDir/build/bottom-*/out/_btm
+ 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 ];
- platforms = platforms.unix;
+ maintainers = with maintainers; [ berbiche figsoda ];
mainProgram = "btm";
};
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fe74edcb69b2..8c2637c3b0b5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -38398,9 +38398,7 @@ with pkgs;
treefmt = callPackage ../development/tools/treefmt { };
- bottom = callPackage ../tools/system/bottom {
- inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit;
- };
+ bottom = callPackage ../tools/system/bottom { };
cagebreak = callPackage ../applications/window-managers/cagebreak {
wlroots = wlroots_0_14;