6 , nvidiaSupport ? false
10 assert nvidiaSupport -> stdenv.hostPlatform.isLinux;
12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 hash = "sha256-y+/s0TDVAFGio5uCzHjf+kHFZB0G8dDgTt2xaqSSz1c=";
23 # remove cargo config so it can find the linker on aarch64-linux
29 lockFile = ./Cargo.lock;
31 "heim-0.1.0-rc.1" = "sha256-TKEG0YxF44wLz+qxpS/VfRKucqyl97t3PDxjPajbD58=";
32 "sysinfo-0.15.1" = "sha256-faMxXEHL7DFQLYrAJ+yBL6yiepZotofPF2+SizGQj4A=";
36 nativeBuildInputs = [ rustPlatform.bindgenHook ] ++ lib.optional nvidiaSupport makeWrapper;
37 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ];
39 buildFeatures = lib.optional nvidiaSupport "nvidia";
41 postInstall = lib.optionalString nvidiaSupport ''
42 wrapProgram $out/bin/zenith \
43 --suffix LD_LIBRARY_PATH : "/run/opengl-driver/lib"
47 description = "Sort of like top or htop but with zoom-able charts, network, and disk usage"
48 + lib.optionalString nvidiaSupport ", and NVIDIA GPU usage";
49 mainProgram = "zenith";
50 homepage = "https://github.com/bvaisvil/zenith";
51 license = licenses.mit;
52 maintainers = with maintainers; [ wegank ];
53 platforms = platforms.unix;