nongnu: nvda: Add native-search-paths.

* nongnu/packages/nvidia.scm (nvda): Add native-search-paths.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
Hilton Chain 2024-01-26 17:01:43 +08:00 committed by John Kehayias
parent b0ebc7cb24
commit 57c915ac9e
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -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}