mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
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:
parent
652728a7e4
commit
857ac54ad9
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user