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 (srfi srfi-1))
(define nvidia-version "470.86")
(define-public nvidia-driver
(package
(name "nvidia-driver")
(version "470.86")
(version nvidia-version)
(source
(origin
(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
(package
(name "nvidia-libs")
(version "470.86")
(version nvidia-version)
(source
(origin
(uri (format #f "http://us.download.nvidia.com/XFree86/Linux-x86_64/~a/~a.run"
@ -407,7 +409,7 @@ package.")
(define-public nvidia-settings
(package
(name "nvidia-settings")
(version "470.86")
(version nvidia-version)
(source (origin
(method git-fetch)
(uri (git-reference