about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-02-02 11:18:00 -0500
committerGitHub <noreply@github.com>2020-02-02 11:18:00 -0500
commitc7458ab9cea3248d3e90ae39350599397b114894 (patch)
treee19714db810e424fc3fa1abded43961d4d6c0028 /pkgs/tools/system
parent0036573d305dc724ad3acd8f6a406bc6113866cc (diff)
parent43686160bc49e4c8fa0fa8d2fb143b672e124b19 (diff)
downloadnixlib-c7458ab9cea3248d3e90ae39350599397b114894.tar
nixlib-c7458ab9cea3248d3e90ae39350599397b114894.tar.gz
nixlib-c7458ab9cea3248d3e90ae39350599397b114894.tar.bz2
nixlib-c7458ab9cea3248d3e90ae39350599397b114894.tar.lz
nixlib-c7458ab9cea3248d3e90ae39350599397b114894.tar.xz
nixlib-c7458ab9cea3248d3e90ae39350599397b114894.tar.zst
nixlib-c7458ab9cea3248d3e90ae39350599397b114894.zip
Merge pull request #79021 from sikmir/ytop
ytop: init at 0.4.0
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/ytop/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/system/ytop/default.nix b/pkgs/tools/system/ytop/default.nix
new file mode 100644
index 000000000000..b1677dadf9d3
--- /dev/null
+++ b/pkgs/tools/system/ytop/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, rustPlatform, fetchFromGitHub, IOKit }:
+
+assert stdenv.isDarwin -> IOKit != null;
+
+rustPlatform.buildRustPackage rec {
+  pname = "ytop";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "cjbassi";
+    repo = pname;
+    rev = version;
+    sha256 = "1158nlg5b93jyljwvf9f2m8m3ph8sksk5dh9sfnvbiifbk4gizv7";
+  };
+
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
+
+  cargoSha256 = "11pcchwahcwdvmfwfs6j2zg23grlw538wfs90mvqy2mpccj7d3ys";
+  verifyCargoDeps = true;
+
+  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;
+  };
+}