@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, darwin }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "bottom";
5+ version = "0.4.7";
6+
7+ src = fetchFromGitHub {
8+ owner = "ClementTsang";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "rDcJ5XF7L13MKZ8/J4sYD+UqC+HkZvxRtDkY9IVLH50=";
12+ };
13+
14+ buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
15+
16+ cargoSha256 = "XeX6QM0a628mcaptNZkKAvDnGfW5tx+aWNBpMyjz44M=";
17+
18+ doCheck = false;
19+
20+ meta = with stdenv.lib; {
21+ description = "A cross-platform graphical process/system monitor with a customizable interface";
22+ homepage = "https://github.com/ClementTsang/bottom";
23+ license = licenses.mit;
24+ maintainers = with maintainers; [ berbiche ];
25+ platforms = platforms.unix;
26+ };
27+}
28+