nongnu: Add libglvnd-for-nvda.

* nongnu/packages/nvidia.scm (libglvnd-for-nvda): New variable.

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

View file

@ -602,6 +602,18 @@ configuration, creating application profiles, gpu monitoring and more.")
;;;
(define-public libglvnd-for-nvda
(hidden-package
(package
(inherit libglvnd)
(arguments
(substitute-keyword-arguments (package-arguments libglvnd)
((#:configure-flags flags #~'())
#~(cons* "-Dc_link_args=-Wl,-rpath=$ORIGIN" #$flags))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(delete 'shrink-runpath))))))))
;; nvda is used as a name because it has the same length as mesa which is
;; required for grafting
(define-public nvda