Skip to content

Commit b924f04

Browse files
authored
fastfetch: optional zfs support (#405236)
2 parents 6f21363 + de01028 commit b924f04

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkgs/by-name/fa/fastfetch/package.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
xorg,
3939
yyjson,
4040
zlib,
41+
zfs,
4142
# Feature flags
4243
audioSupport ? true,
4344
brightnessSupport ? true,
@@ -54,6 +55,7 @@
5455
waylandSupport ? true,
5556
x11Support ? true,
5657
xfceSupport ? true,
58+
zfsSupport ? false,
5759
}:
5860
stdenv.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

Comments
 (0)