i3status-rust: optional icu_calendar support

Recently, upstream has incorporated support for non-Gregorian calendars
using the icu_calendar crate. To manage the substantial increase in
binary size caused by this addition, upstream has made this feature
flag optional. In line with this decision, this commit introduces the
withICUCalendar option, set to a default value of false.
This commit is contained in:
kilianar 2023-11-25 09:42:21 +01:00
parent 652728a7e4
commit 857ac54ad9

View File

@ -11,6 +11,7 @@
, lm_sensors
, iw
, iproute2
, withICUCalendar ? false
}:
rustPlatform.buildRustPackage rec {
@ -34,7 +35,7 @@ rustPlatform.buildRustPackage rec {
"notmuch"
"maildir"
"pulseaudio"
];
] ++ (lib.optionals withICUCalendar [ "icu_calendar" ]);
prePatch = ''
substituteInPlace src/util.rs \