i3status-rust: add an attribute to be able to disable notmuch support

This commit is contained in:
Justin !
2025-03-05 11:48:52 -05:00
parent 4f8cf45715
commit 01aaf2a79b
@@ -14,6 +14,7 @@
, pipewire
, withICUCalendar ? false
, withPipewire ? true
, withNotmuch ? true
}:
rustPlatform.buildRustPackage rec {
@@ -33,15 +34,16 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config makeWrapper ]
++ (lib.optionals withPipewire [ rustPlatform.bindgenHook ]);
buildInputs = [ dbus libpulseaudio notmuch openssl lm_sensors ]
++ (lib.optionals withPipewire [ pipewire ]);
buildInputs = [ dbus libpulseaudio openssl lm_sensors ]
++ (lib.optionals withPipewire [ pipewire ])
++ (lib.optionals withNotmuch [ notmuch ]);
buildFeatures = [
"notmuch"
"maildir"
"pulseaudio"
] ++ (lib.optionals withICUCalendar [ "icu_calendar" ])
++ (lib.optionals withPipewire [ "pipewire" ]);
++ (lib.optionals withPipewire [ "pipewire" ])
++ (lib.optionals withNotmuch [ "notmuch" ]);
prePatch = ''
substituteInPlace src/util.rs \