mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-22 16:38:09 +01:00
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:
parent
29498efd16
commit
34a5130517
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue