From 857ac54ad9c70af56fd9d2ecde5cd87cf8d43adc Mon Sep 17 00:00:00 2001 From: kilianar Date: Sat, 25 Nov 2023 09:42:21 +0100 Subject: 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. --- pkgs/applications/window-managers/i3/status-rust.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/window-managers') diff --git a/pkgs/applications/window-managers/i3/status-rust.nix b/pkgs/applications/window-managers/i3/status-rust.nix index fe1b789a23cf5..06c3de8cd3fa5 100644 --- a/pkgs/applications/window-managers/i3/status-rust.nix +++ b/pkgs/applications/window-managers/i3/status-rust.nix @@ -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 \ -- cgit 1.4.1