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 <jonathan.brielmaier@web.de>
This commit is contained in:
Jean-Baptiste Volatier 2021-02-03 08:35:18 +01:00 committed by Jonathan Brielmaier
parent 29498efd16
commit 34a5130517
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -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