From eadb3374abb56bad20cd1f5176eb852377c64db1 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Mon, 4 Nov 2024 21:12:30 +0800 Subject: [PATCH] nongnu: Add nvdb. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘nvda’ for nvidia-driver-beta. * nongnu/packages/nvidia.scm (nvdb): New variable. Signed-off-by: Hilton Chain --- nongnu/packages/nvidia.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 236e91e..fa44423 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -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)