1 { lib, rustPlatform, fetchFromGitHub, dbus, gdk-pixbuf, libnotify, makeWrapper, pkg-config, xorg
2 , enableAlsaUtils ? true, alsa-utils, coreutils
3 , enableNetwork ? true, dnsutils, iproute2, wirelesstools }:
6 bins = lib.optionals enableAlsaUtils [ alsa-utils coreutils ]
7 ++ lib.optionals enableNetwork [ dnsutils iproute2 wirelesstools ];
10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-GkTPEmsnHFLUvbasAOXOQjFKs1Y9aaG87uyPvnQaT8Y=";
21 nativeBuildInputs = [ makeWrapper pkg-config ];
22 buildInputs = [ dbus gdk-pixbuf libnotify xorg.libX11 ];
24 cargoSha256 = "sha256-eRfXUnyzOfVSEiwjLCaNbETUPXVU2Ed2VUNM9FjS5YE=";
26 postInstall = lib.optionalString (bins != []) ''
27 wrapProgram $out/bin/dwm-status --prefix "PATH" : "${lib.makeBinPath bins}"
31 description = "Highly performant and configurable DWM status service";
32 homepage = "https://github.com/Gerschtli/dwm-status";
33 changelog = "https://github.com/Gerschtli/dwm-status/blob/master/CHANGELOG.md";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ gerschtli ];
37 platforms = platforms.linux;