From c664de6a55ce72d227673848b06fb91b053a6395 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Mon, 7 Mar 2022 09:49:39 +0100 Subject: [PATCH] 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 --- nongnu/packages/nvidia.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 49f5c22..2dd2a73 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -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