nongnu: nvidia-driver: Install EGL vendor ICD configuration.

* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:install-plan>: Install
EGL vendor ICD configuration.
<#:phases>: Modify its library path.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
Hilton Chain 2024-01-24 22:45:56 +08:00 committed by John Kehayias
parent 0ae85eb25e
commit d59c557f79
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -249,6 +249,7 @@ ACTION==\"unbind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\
"lib/" #:include-regexp ("^./[^/]+\\.so"))
("." "share/nvidia/" #:include-regexp ("nvidia-application-profiles"))
("." "share/egl/egl_external_platform.d/" #:include-regexp ("(gbm|wayland)\\.json"))
("10_nvidia.json" "share/glvnd/egl_vendor.d/")
("90-nvidia.rules" "lib/udev/rules.d/")
("nvidia-drm-outputclass.conf" "share/X11/xorg.conf.d/")
("nvidia-dbus.conf" "share/dbus-1/system.d/")
@ -266,6 +267,11 @@ ACTION==\"unbind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\
(("libnvidia-egl-(wayland|gbm)\\.so\\.." all)
(search-input-file inputs (string-append "lib/" all))))
;; EGL vendor ICD configuration
(substitute* "10_nvidia.json"
(("libEGL_nvidia\\.so\\.." all)
(string-append #$output "/lib/" all)))
;; OpenCL vendor ICD configuration
(substitute* "nvidia.icd"
(("libnvidia-opencl\\.so\\.." all)