nongnu: nvidia-source: Update to 515.76.

* nongnu/packages/nvidia.scm (nvidia-version, nvidia-driver,nvidia-settings): Update to 515.76
[arguments]<#:phases>: Install GBM EGL external platform library.
[inputs]: Add libdrm and mesa.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Hilton Chain 2022-11-21 13:54:25 +08:00 committed by Jonathan Brielmaier
parent 12104c6ed1
commit 8a4fef778c
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -55,6 +55,7 @@
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages video) #:use-module (gnu packages video)
#:use-module (gnu packages web) #:use-module (gnu packages web)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xorg) #:use-module (gnu packages xorg)
#:use-module (nongnu packages linux) #:use-module (nongnu packages linux)
#:use-module (ice-9 match) #:use-module (ice-9 match)
@ -65,7 +66,7 @@
#:use-module (srfi srfi-1)) #:use-module (srfi srfi-1))
; Used for closed-source packages ; Used for closed-source packages
(define nvidia-version "470.86") (define nvidia-version "515.76")
; Used for the open-source kernel module package ; Used for the open-source kernel module package
(define nversion "515.76") (define nversion "515.76")
@ -112,7 +113,7 @@
"https://us.download.nvidia.com/XFree86/Linux-x86_64/" "https://us.download.nvidia.com/XFree86/Linux-x86_64/"
version "/NVIDIA-Linux-x86_64-" version ".run")) version "/NVIDIA-Linux-x86_64-" version ".run"))
(sha256 (sha256
(base32 "0krwcxc0j19vjnk8sv6mx1lin2rm8hcfhc2hg266846jvcws1dsg")))))) (base32 "0i5zyvlsjnfkpfqhw6pklp0ws8nndyiwxrg4pj04jpwnxf6a38n6"))))))
(define-public nvidia-driver (define-public nvidia-driver
(package (package
@ -131,10 +132,11 @@
#:install-plan #:install-plan
#~`(("." "lib/" #:include-regexp ("^./[^/]+\\.so") #:exclude-regexp ("nvidia_drv\\.so" "libglxserver_nvidia\\.so\\..*")) #~`(("." "lib/" #:include-regexp ("^./[^/]+\\.so") #:exclude-regexp ("nvidia_drv\\.so" "libglxserver_nvidia\\.so\\..*"))
("." "share/nvidia/" #:include-regexp ("nvidia-application-profiles.*")) ("." "share/nvidia/" #:include-regexp ("nvidia-application-profiles.*"))
("10_nvidia_wayland.json" "share/egl/egl_external_platform.d/") ("." "share/egl/egl_external_platform.d/" #:include-regexp (".*_nvidia_.*\\.json"))
("90-nvidia.rules" "lib/udev/rules.d/") ("90-nvidia.rules" "lib/udev/rules.d/")
("nvidia-drm-outputclass.conf" "share/x11/xorg.conf.d/") ("nvidia-drm-outputclass.conf" "share/x11/xorg.conf.d/")
("nvidia-smi" "bin/") ("nvidia-smi" "bin/")
("nvidia-dbus.conf" "share/dbus-1/system.d/")
("nvidia-smi.1.gz" "share/man/man1/") ("nvidia-smi.1.gz" "share/man/man1/")
("nvidia.icd" "etc/OpenCL/vendors/") ("nvidia.icd" "etc/OpenCL/vendors/")
("nvidia_drv.so" "lib/xorg/modules/drivers/") ("nvidia_drv.so" "lib/xorg/modules/drivers/")
@ -187,8 +189,10 @@ KERNEL==\"nvidia_uvm\", RUN+=\"@sh@ -c '@mknod@ -m 666 /dev/nvidia-uvm-tools c $
(string-append #$(this-package-input "glib") "/lib") (string-append #$(this-package-input "glib") "/lib")
(string-append #$(this-package-input "glibc") "/lib") (string-append #$(this-package-input "glibc") "/lib")
(string-append #$(this-package-input "gtk+") "/lib") (string-append #$(this-package-input "gtk+") "/lib")
(string-append #$(this-package-input "libdrm") "/lib")
(string-append #$(this-package-input "libx11") "/lib") (string-append #$(this-package-input "libx11") "/lib")
(string-append #$(this-package-input "libxext") "/lib") (string-append #$(this-package-input "libxext") "/lib")
(string-append #$(this-package-input "mesa") "/lib")
(string-append #$(this-package-input "pango") "/lib") (string-append #$(this-package-input "pango") "/lib")
(string-append #$(this-package-input "wayland") "/lib")) (string-append #$(this-package-input "wayland") "/lib"))
":"))) ":")))
@ -234,7 +238,9 @@ KERNEL==\"nvidia_uvm\", RUN+=\"@sh@ -c '@mknod@ -m 666 /dev/nvidia-uvm-tools c $
(list soname base)))))) (list soname base))))))
(find-files #$output "\\.so")) (find-files #$output "\\.so"))
(symlink (string-append "libglxserver_nvidia.so." #$version) (symlink (string-append "libglxserver_nvidia.so." #$version)
(string-append #$output "/lib/xorg/modules/extensions/" "libglxserver_nvidia.so"))))))) (string-append #$output "/lib/xorg/modules/extensions/" "libglxserver_nvidia.so"))
(symlink (string-append "libnvidia-allocator.so." #$version)
(string-append #$output "/lib/nvidia-drm_gbm.so" )))))))
(supported-systems '("x86_64-linux")) (supported-systems '("x86_64-linux"))
(native-inputs (list patchelf)) (native-inputs (list patchelf))
(inputs (inputs
@ -250,9 +256,11 @@ KERNEL==\"nvidia_uvm\", RUN+=\"@sh@ -c '@mknod@ -m 666 /dev/nvidia-uvm-tools c $
gtk+ gtk+
gtk+-2 gtk+-2
kmod kmod
libdrm
libx11 libx11
libxext libxext
linux-lts linux-lts
mesa
pango pango
wayland)) wayland))
(home-page "https://www.nvidia.com") (home-page "https://www.nvidia.com")
@ -463,7 +471,7 @@ source userspace tools from the corresponding driver release.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1lnj5hwmfkzs664fxlhljqy323394s1i7qzlpsjyrpm07sa93bky")))) "1hplc42115c06cc555cjmw3c9371qn7ibwjpqjybcf6ixfd6lryq"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? #f ;no test suite (list #:tests? #f ;no test suite