nixpkgs/pkgs/tools/system/ytop/default.nix
2020-02-17 04:20:00 -05:00

28 lines
717 B
Nix

{ stdenv, rustPlatform, fetchFromGitHub, IOKit }:
assert stdenv.isDarwin -> IOKit != null;
rustPlatform.buildRustPackage rec {
pname = "ytop";
version = "0.5.1";
src = fetchFromGitHub {
owner = "cjbassi";
repo = pname;
rev = version;
sha256 = "1wpxn8i5112pzs8b03shl627r2yz70lvzjhd6f5crwhsnir06h5x";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
cargoSha256 = "0wmlmkq4y2923i5kjhprw2hd2v5qls49ncs6h8g9rdlmwd7qdl86";
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;
};
}