nongnu: Use nvidia-version to define version for multiple packages.

* nongnu/packages/nvidia.scm (nvidia-driver, nvidia-libs, nvidia-settings):
[version] Use nvidia-version variable instead of hardcoded-string.
(nvidia-version): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Petr Hodina 2022-03-07 09:49:39 +01:00 committed by Jonathan Brielmaier
parent edc96d3477
commit c664de6a55
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -57,10 +57,12 @@
#:use-module (ice-9 match) #:use-module (ice-9 match)
#:use-module (srfi srfi-1)) #:use-module (srfi srfi-1))
(define nvidia-version "470.86")
(define-public nvidia-driver (define-public nvidia-driver
(package (package
(name "nvidia-driver") (name "nvidia-driver")
(version "470.86") (version nvidia-version)
(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"
@ -282,7 +284,7 @@ Further xorg should be configured by adding:
(define-public nvidia-libs (define-public nvidia-libs
(package (package
(name "nvidia-libs") (name "nvidia-libs")
(version "470.86") (version nvidia-version)
(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"
@ -407,7 +409,7 @@ package.")
(define-public nvidia-settings (define-public nvidia-settings
(package (package
(name "nvidia-settings") (name "nvidia-settings")
(version "470.86") (version nvidia-version)
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference