fastfetch: add rpmSupport option

This commit is contained in:
Izorkin
2024-02-05 01:34:08 +03:00
parent 15dfbbd4c3
commit 4cdd481074
+4 -1
View File
@@ -28,6 +28,7 @@
, xfce
, yyjson
, zlib
, rpmSupport ? false
, vulkanSupport ? true
, waylandSupport ? true
, x11Support ? true
@@ -66,8 +67,9 @@ stdenv.mkDerivation (finalAttrs: {
ocl-icd
opencl-headers
pciutils
rpm
zlib
] ++ lib.optionals rpmSupport [
rpm
] ++ lib.optionals vulkanSupport [
vulkan-loader
] ++ lib.optionals waylandSupport [
@@ -97,6 +99,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeOptionType "filepath" "CMAKE_INSTALL_SYSCONFDIR" "${placeholder "out"}/etc")
(lib.cmakeBool "ENABLE_SYSTEM_YYJSON" true)
(lib.cmakeBool "ENABLE_GLX" x11Support)
(lib.cmakeBool "ENABLE_RPM" rpmSupport)
(lib.cmakeBool "ENABLE_VULKAN" x11Support)
(lib.cmakeBool "ENABLE_WAYLAND" waylandSupport)
(lib.cmakeBool "ENABLE_X11" x11Support)