nixpkgs-suyu/pkgs/tools/system/ytop/default.nix

28 lines
719 B
Nix
Raw Normal View History

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