From 6fe69bff9d24b832c1fe485299ffc2d2386bcc49 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Wed, 11 Mar 2026 13:48:58 +0800 Subject: nongnu: Add nvidia-modprobe. * nongnu/packages/nvidia.scm (nvidia-modprobe): New variable. --- nongnu/packages/nvidia.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 1a933a4..714d45a 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -596,6 +596,46 @@ NVIDIA driver.") (version (package-version nvidia-driver-beta)) (source (package-source nvidia-driver-beta)))) + +;;; +;;; nvidia-modprobe +;;; + +(define-public nvidia-modprobe + (package + (name "nvidia-modprobe") + (version "580.142") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/NVIDIA/nvidia-modprobe") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1rbl52d40q86y9dbj5qlm5k3rindg5fqh121wxfzrc68fl3gjila")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;No test suite + #:make-flags + #~(list (string-append "PREFIX=" #$output) + (string-append "CC=" #$(cc-for-target)) + (string-append "STRIP_CMD=" #$(strip-for-target)) + "HOST_CC=gcc") + #:phases + #~(modify-phases %standard-phases + ;; No configure script. + (delete 'configure)))) + (native-inputs (list m4 pkg-config)) + (home-page "https://github.com/NVIDIA/nvidia-modprobe") + (synopsis + "Load the NVIDIA kernel module and create NVIDIA character device files") + (description + "The @command{nvidia-modprobe} utility is used by user-space NVIDIA driver +components to make sure the NVIDIA kernel module is loaded, the NVIDIA character +device files are present and configure certain runtime settings in the kernel.") + (license license-gnu:gpl2))) + ;;; ;;; ‘nvidia-settings’ packages -- cgit v1.3