mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-22 00:18:07 +01:00
nongnu: make-nvidia-source: Adjust style.
* nongnu/packages/nvidia.scm (computed-origin-method): Delete from top-level. (make-nvidia-source): Use ungexp-native only once. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
parent
47941b0a84
commit
5f7dabe418
1 changed files with 8 additions and 11 deletions
|
@ -66,9 +66,6 @@
|
|||
|
||||
(define-public nvidia-version "515.76")
|
||||
|
||||
(define computed-origin-method
|
||||
(@@ (guix packages) computed-origin-method))
|
||||
|
||||
|
||||
;;;
|
||||
;;; NVIDIA driver checkouts
|
||||
|
@ -78,7 +75,7 @@
|
|||
;; Extract the driver installer and make it a new origin instance for reusing.
|
||||
(define (make-nvidia-source version installer)
|
||||
(origin
|
||||
(method computed-origin-method)
|
||||
(method (@@ (guix packages) computed-origin-method))
|
||||
(file-name (string-append "nvidia-driver-" version "-checkout"))
|
||||
(sha256 #f)
|
||||
(uri
|
||||
|
@ -89,13 +86,13 @@
|
|||
(ice-9 ftw))
|
||||
(set-path-environment-variable
|
||||
"PATH" '("bin")
|
||||
(list (canonicalize-path #+bash-minimal)
|
||||
(canonicalize-path #+coreutils)
|
||||
(canonicalize-path #+gawk)
|
||||
(canonicalize-path #+grep)
|
||||
(canonicalize-path #+tar)
|
||||
(canonicalize-path #+which)
|
||||
(canonicalize-path #+xz)))
|
||||
'#+(list bash-minimal
|
||||
coreutils
|
||||
gawk
|
||||
grep
|
||||
tar
|
||||
which
|
||||
xz))
|
||||
(setenv "XZ_OPT" (string-join (%xz-parallel-args)))
|
||||
(invoke "sh" #$installer "-x")
|
||||
(copy-recursively
|
||||
|
|
Loading…
Reference in a new issue