2020-02-01 16:53:24 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, IOKit }:
|
|
|
|
|
|
|
|
assert stdenv.isDarwin -> IOKit != null;
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ytop";
|
2020-05-11 09:51:43 +01:00
|
|
|
version = "0.6.1";
|
2020-02-01 16:53:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cjbassi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-11 09:51:43 +01:00
|
|
|
sha256 = "1p746v9xrfm6avc6v9dvcnpckhvdizzf53pcg9bpcp0lw5sh85da";
|
2020-02-01 16:53:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
|
|
|
|
|
2020-05-11 09:51:43 +01:00
|
|
|
cargoSha256 = "15cpi0b5yqjwi1liry2q17sn9hpc4xf9gn33ri3rs6ls5qs7j7pa";
|
2020-02-01 16:53:24 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A TUI system monitor written in Rust";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cjbassi/ytop";
|
2020-02-01 16:53:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|