fastfetch: add vulkanSupport option
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user