fastfetch: add vulkanSupport option

This commit is contained in:
Izorkin
2024-02-05 01:32:05 +03:00
parent 69206539d4
commit 15dfbbd4c3
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ with lib;
beam = super.beam_nox;
cairo = super.cairo.override { x11Support = false; };
dbus = super.dbus.override { x11Support = false; };
fastfetch = super.fastfetch.override { waylandSupport = false; x11Support = false; };
fastfetch = super.fastfetch.override { vulkanSupport = false; waylandSupport = false; x11Support = false; };
ffmpeg_4 = super.ffmpeg_4.override { ffmpegVariant = "headless"; };
ffmpeg_5 = super.ffmpeg_5.override { ffmpegVariant = "headless"; };
# dep of graphviz, libXpm is optional for Xpm support
+4 -1
View File
@@ -28,6 +28,7 @@
, xfce
, yyjson
, zlib
, vulkanSupport ? true
, waylandSupport ? true
, x11Support ? true
}:
@@ -66,8 +67,9 @@ stdenv.mkDerivation (finalAttrs: {
opencl-headers
pciutils
rpm
vulkan-loader
zlib
] ++ lib.optionals vulkanSupport [
vulkan-loader
] ++ lib.optionals waylandSupport [
wayland
] ++ lib.optionals x11Support [
@@ -95,6 +97,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_VULKAN" x11Support)
(lib.cmakeBool "ENABLE_WAYLAND" waylandSupport)
(lib.cmakeBool "ENABLE_X11" x11Support)
(lib.cmakeBool "ENABLE_XCB" x11Support)