nongnu: Add nvdb.

‘nvda’ for nvidia-driver-beta.

* nongnu/packages/nvidia.scm (nvdb): New variable.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
Nicolas Graves 2024-11-04 21:12:30 +08:00 committed by Hilton Chain
parent 0d9869b5ff
commit eadb3374ab
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -807,6 +807,30 @@ variables @code{__GLX_VENDOR_LIBRARY_NAME=nvidia} and
(license (package-license nvidia-driver))
(home-page (package-home-page nvidia-driver))))
(define-public nvdb
(package
(inherit nvda)
(name "nvdb")
(version (string-pad-right
(package-version nvidia-driver-beta)
(string-length (package-version mesa-for-nvda))
#\0))
(arguments
(list #:modules '((guix build union))
#:builder
#~(begin
(use-modules (guix build union))
(union-build
#$output
'#$(list (this-package-input "libglvnd")
(this-package-input "mesa")
(this-package-input "nvidia-driver-beta"))))))
(propagated-inputs
(append
(package-propagated-inputs mesa-for-nvda)
(package-propagated-inputs nvidia-driver-beta)))
(inputs (list mesa-for-nvda nvidia-driver-beta))))
(define mesa/fake
(package
(inherit mesa)