@@ -1,23 +1,27 @@
1−{ stdenv, rustPlatform, fetchFromGitHub }:
1+{ stdenv, rustPlatform, fetchFromGitHub, IOKit }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "zenith";
5− version = "0.8.0";
5+ version = "0.8.1";
66
77 src = fetchFromGitHub {
88 owner = "bvaisvil";
99 repo = pname;
1010 rev = version;
11− sha256 = "1m709mnhhjs30s91542rhri3xbzsb3kw8zablvn11rwp2iq1lxxx";
11+ sha256 = "12wbx4zhf1rf13g3mw8vcn8aqk9vcza61vi42y6c1pb2km73qw1h";
1212 };
1313
14− cargoSha256 = "1j6pww4mpssnr9zsbfy74llv7336kjrif1qiph998b82qj63vdlg";
14+ cargoPatches = [ ./cargo-lock.patch ];
15+ cargoSha256 = "1nyci2vjwsyfscsd520d1r5vyazb33hv4mrsysy6amss4jdf2dlq";
16+
17+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
1518
1619 meta = with stdenv.lib; {
1720 description = "Sort of like top or htop but with zoom-able charts, network, and disk usage";
1821 homepage = "https://github.com/bvaisvil/zenith";
1922 license = licenses.mit;
2023 maintainers = with maintainers; [ bbigras ];
24+ # doesn't build on aarch64 https://github.com/bvaisvil/zenith/issues/19
2125 platforms = platforms.x86;
2226 };
2327}