3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/ytop/default.nix

28 lines
717 B
Nix
Raw Normal View History

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