From 57c915ac9e5c1acc9855edcdd391a6f19630b2da Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 26 Jan 2024 17:01:43 +0800 Subject: nongnu: nvda: Add native-search-paths. * nongnu/packages/nvidia.scm (nvda): Add native-search-paths. Signed-off-by: John Kehayias --- nongnu/packages/nvidia.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index b812a94..da4dec6 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -632,6 +632,28 @@ configuration, creating application profiles, gpu monitoring and more.") (last files)))) (format #t "chosen ~a ~%" file) file)))))) + (native-search-paths + (list + ;; https://github.com/NVIDIA/egl-wayland/issues/39 + (search-path-specification + (variable "__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS") + (files '("share/egl/egl_external_platform.d"))) + ;; https://gitlab.freedesktop.org/glvnd/libglvnd/-/blob/master/src/EGL/icd_enumeration.md + (search-path-specification + (variable "__EGL_VENDOR_LIBRARY_DIRS") + (files '("share/glvnd/egl_vendor.d"))) + ;; See also: ‘src/gbm/main/backend.c’ in mesa source. + (search-path-specification + (variable "GBM_BACKENDS_PATH") + (files '("lib/gbm"))) + (search-path-specification + (variable "VDPAU_DRIVER_PATH") + (files '("lib/vdpau")) + (separator #f)) + ;; https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderLayerInterface.md + (search-path-specification + (variable "XDG_DATA_DIRS") + (files '("share"))))) (description "These are the libraries of the evil NVIDIA driver, packaged in such a way that you can use the transformation option @code{--with-graft=mesa=nvda} -- cgit v1.2.3