nongnu: nvda: Adjust package style.

* nongnu/packages/nvidia.scm (nvda)[arguments]<#:builder>: Adjust style.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
Hilton Chain 2024-01-31 19:15:18 +08:00 committed by John Kehayias
parent 74fa6e1916
commit 357888aa25
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -621,17 +621,18 @@ configuration, creating application profiles, gpu monitoring and more.")
(use-modules (guix build union)
(srfi srfi-1)
(ice-9 regex))
(union-build #$output
(list #$(this-package-input "mesa")
#$(this-package-input "nvidia-driver"))
#:resolve-collision
(lambda (files)
(let ((file (if (string-match "nvidia-driver"
(first files))
(first files)
(last files))))
(format #t "chosen ~a ~%" file)
file))))))
(union-build
#$output
'#$(list (this-package-input "mesa")
(this-package-input "nvidia-driver"))
#:resolve-collision
(lambda (files)
(let ((file (if (string-match "nvidia-driver"
(first files))
(first files)
(last files))))
(format #t "chosen ~a ~%" file)
file))))))
(native-search-paths
(list
;; https://github.com/NVIDIA/egl-wayland/issues/39