From 34a5130517d6ba0bc5d948e63f99de3d3bd8fb3e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Volatier Date: Wed, 3 Feb 2021 08:35:18 +0100 Subject: [PATCH] nongnu: nvidia: Add nvidia-smi to nvidia-driver. nvidia-smi is a binary that provides hardware information. * nongnu/packages/nvidia.scm (nvidia-driver)[arguments]: Add nvidia-smi to nvidia-driver. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/nvidia.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index ee0d250..e82f3af 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -90,6 +90,7 @@ "CC=gcc") #t)) (delete 'check) + (delete 'strip) (add-after 'install 'install-copy (lambda* (#:key inputs native-inputs outputs #:allow-other-keys) (chdir "..") @@ -169,6 +170,11 @@ "rmmod " "ipmi_devintf" "\n")))) (chmod file #o555)) + ;; ------------------------------ + ;; nvidia-smi + + (install-file "nvidia-smi" bindir) + ;; ------------------------------ ;; patchelf (let* ((libc (assoc-ref inputs "libc")) @@ -199,7 +205,8 @@ (for-each (lambda (file) (when (elf-file? file) (patch-elf file))) - (find-files out ".*\\.so"))) + (find-files out ".*\\.so")) + (patch-elf (string-append bindir "/" "nvidia-smi"))) ;; ------------------------------ ;; Create short name symbolic links