nongnu: nvidia: Update to 470.86.

* nongnu/packages/nvidia.scm (nvidia-driver): Update to 470.86.
[arguments]: Change short name of symbolic links.
(nvidia-libs): Dito.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
irfus 2021-12-15 11:29:21 +05:30 committed by Jonathan Brielmaier
parent a49c3d42ca
commit 604184d9ad
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -54,13 +54,13 @@
(define-public nvidia-driver (define-public nvidia-driver
(package (package
(name "nvidia-driver") (name "nvidia-driver")
(version "465.27") (version "470.86")
(source (source
(origin (origin
(uri (format #f "http://us.download.nvidia.com/XFree86/Linux-x86_64/~a/~a.run" (uri (format #f "http://us.download.nvidia.com/XFree86/Linux-x86_64/~a/~a.run"
version version
(format #f "NVIDIA-Linux-x86_64-~a" version))) (format #f "NVIDIA-Linux-x86_64-~a" version)))
(sha256 (base32 "0w9ivi4z4j4hvhkimr11mgwrj09v53dy39vfdfmamrnybflgysby")) (sha256 (base32 "0krwcxc0j19vjnk8sv6mx1lin2rm8hcfhc2hg266846jvcws1dsg"))
(method url-fetch) (method url-fetch)
(file-name (string-append "nvidia-driver-" version "-checkout")))) (file-name (string-append "nvidia-driver-" version "-checkout"))))
(build-system linux-module-build-system) (build-system linux-module-build-system)
@ -216,11 +216,12 @@
#f #f
(string-match "([^/]*\\.so).*" file) (string-match "([^/]*\\.so).*" file)
1)) 1))
(major (if (or (string=? short "libEGL.so") (major (cond
(string=? short "libEGL_nvidia.so") ((or (string=? short "libGLX.so")
(string=? short "libGLX.so") (string=? short "libGLX_nvidia.so")
(string=? short "libGLX_nvidia.so")) (string=? short "libEGL_nvidia.so")) "0")
"0" "1")) ((string=? short "libGLESv2.so") "2")
(else "1")))
(mid (string-append short "." major)) (mid (string-append short "." major))
(short-file (string-append libdir "/" short)) (short-file (string-append libdir "/" short))
(mid-file (string-append libdir "/" mid))) (mid-file (string-append libdir "/" mid)))
@ -274,13 +275,13 @@ Further xorg should be configured by adding:
(define-public nvidia-libs (define-public nvidia-libs
(package (package
(name "nvidia-libs") (name "nvidia-libs")
(version "465.27") (version "470.86")
(source (source
(origin (origin
(uri (format #f "http://us.download.nvidia.com/XFree86/Linux-x86_64/~a/~a.run" (uri (format #f "http://us.download.nvidia.com/XFree86/Linux-x86_64/~a/~a.run"
version version
(format #f "NVIDIA-Linux-x86_64-~a" version))) (format #f "NVIDIA-Linux-x86_64-~a" version)))
(sha256 (base32 "0w9ivi4z4j4hvhkimr11mgwrj09v53dy39vfdfmamrnybflgysby")) (sha256 (base32 "0krwcxc0j19vjnk8sv6mx1lin2rm8hcfhc2hg266846jvcws1dsg"))
(method url-fetch) (method url-fetch)
(file-name (string-append "nvidia-driver-" version "-checkout")))) (file-name (string-append "nvidia-driver-" version "-checkout"))))
(build-system copy-build-system) (build-system copy-build-system)
@ -344,11 +345,12 @@ Further xorg should be configured by adding:
(string-match "([^/]*\\.so).*" file) (string-match "([^/]*\\.so).*" file)
1)) 1))
(major (if (or (string=? short "libEGL.so") (major (cond
(string=? short "libEGL_nvidia.so") ((or (string=? short "libGLX.so")
(string=? short "libGLX.so") (string=? short "libGLX_nvidia.so")
(string=? short "libGLX_nvidia.so")) (string=? short "libEGL_nvidia.so")) "0")
"0" "1")) ((string=? short "libGLESv2.so") "2")
(else "1")))
(mid (string-append short "." major)) (mid (string-append short "." major))
(short-file (string-append libdir "/" short)) (short-file (string-append libdir "/" short))
(mid-file (string-append libdir "/" mid))) (mid-file (string-append libdir "/" mid)))