3838 xorg ,
3939 yyjson ,
4040 zlib ,
41+ zfs ,
4142 # Feature flags
4243 audioSupport ? true ,
4344 brightnessSupport ? true ,
5455 waylandSupport ? true ,
5556 x11Support ? true ,
5657 xfceSupport ? true ,
58+ zfsSupport ? false ,
5759} :
5860stdenv . mkDerivation ( finalAttrs : {
5961 pname = "fastfetch" ;
@@ -175,6 +177,10 @@ stdenv.mkDerivation (finalAttrs: {
175177 # Needed for XFWM theme and XFCE Terminal font.
176178 xfce . xfconf
177179 ]
180+ ++ lib . optionals zfsSupport [
181+ # Needed for zpool module
182+ zfs
183+ ]
178184 ) ;
179185
180186 macosDeps = lib . optionals stdenv . hostPlatform . isDarwin [
@@ -198,6 +204,8 @@ stdenv.mkDerivation (finalAttrs: {
198204 ( lib . cmakeBool "ENABLE_CHAFA" imageSupport )
199205
200206 ( lib . cmakeBool "ENABLE_SQLITE3" sqliteSupport )
207+
208+ ( lib . cmakeBool "ENABLE_LIBZFS" zfsSupport )
201209 ]
202210 ++ lib . optionals stdenv . hostPlatform . isLinux [
203211 ( lib . cmakeBool "ENABLE_PULSE" audioSupport )
@@ -270,7 +278,7 @@ stdenv.mkDerivation (finalAttrs: {
270278 longDescription = ''
271279 Fast and highly customizable system info script.
272280
273- Feature flags (all default to 'true' except rpmSupport and flashfetchSupport ):
281+ Feature flags (all default to 'true' except rpmSupport, flashfetchSupport and zfsSupport ):
274282 * audioSupport: PulseAudio functionality
275283 * brightnessSupport: External display brightness detection via DDCUtil
276284 * dbusSupport: DBus functionality for Bluetooth, WiFi, player & media detection
@@ -286,6 +294,7 @@ stdenv.mkDerivation (finalAttrs: {
286294 * waylandSupport: Wayland display detection
287295 * x11Support: X11 display information
288296 * xfceSupport: XFCE integration for theme and terminal font detection
297+ * zfsSupport: zpool information
289298 '' ;
290299 } ;
291300} )
0 commit comments