about summary refs log tree commit diff
path: root/pkgs/tools/system/zenith
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-04-04 16:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-04-04 16:20:00 -0500
commit48ec5da6acab3bbfd2fc580fb1201d3bd6565d55 (patch)
tree20b8956e895de21f24eaf32568699df64bfe5077 /pkgs/tools/system/zenith
parent26e8ab5a7b2ca29af067e1492eb84d877e35e153 (diff)
downloadnixlib-48ec5da6acab3bbfd2fc580fb1201d3bd6565d55.tar
nixlib-48ec5da6acab3bbfd2fc580fb1201d3bd6565d55.tar.gz
nixlib-48ec5da6acab3bbfd2fc580fb1201d3bd6565d55.tar.bz2
nixlib-48ec5da6acab3bbfd2fc580fb1201d3bd6565d55.tar.lz
nixlib-48ec5da6acab3bbfd2fc580fb1201d3bd6565d55.tar.xz
nixlib-48ec5da6acab3bbfd2fc580fb1201d3bd6565d55.tar.zst
nixlib-48ec5da6acab3bbfd2fc580fb1201d3bd6565d55.zip
zenith: enable on darwin
Diffstat (limited to 'pkgs/tools/system/zenith')
-rw-r--r--pkgs/tools/system/zenith/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/system/zenith/default.nix b/pkgs/tools/system/zenith/default.nix
index 80c019995a95..f59541c26412 100644
--- a/pkgs/tools/system/zenith/default.nix
+++ b/pkgs/tools/system/zenith/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, rustPlatform, fetchFromGitHub }:
+{ stdenv, rustPlatform, fetchFromGitHub, IOKit }:
 
 rustPlatform.buildRustPackage rec {
   pname = "zenith";
@@ -14,6 +14,8 @@ rustPlatform.buildRustPackage rec {
   cargoPatches = [ ./cargo-lock.patch ];
   cargoSha256 = "1nyci2vjwsyfscsd520d1r5vyazb33hv4mrsysy6amss4jdf2dlq";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
+
   meta = with stdenv.lib; {
     description = "Sort of like top or htop but with zoom-able charts, network, and disk usage";
     homepage = "https://github.com/bvaisvil/zenith";