From 8c1a56e16ea4d728aed3c4399102ae0aa14e5032 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Wed, 31 Jan 2024 18:57:42 +0800 Subject: nongnu: Add libglvnd-for-nvda. * nongnu/packages/nvidia.scm (libglvnd-for-nvda): New variable. Signed-off-by: John Kehayias --- nongnu/packages/nvidia.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nongnu') diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 6b2b20e..beb9158 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -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 -- cgit v1.2.3