mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-23 00:48:08 +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")
|
"CC=gcc")
|
||||||
#t))
|
#t))
|
||||||
(delete 'check)
|
(delete 'check)
|
||||||
|
(delete 'strip)
|
||||||
(add-after 'install 'install-copy
|
(add-after 'install 'install-copy
|
||||||
(lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
|
||||||
(chdir "..")
|
(chdir "..")
|
||||||
|
@ -169,6 +170,11 @@
|
||||||
"rmmod " "ipmi_devintf" "\n"))))
|
"rmmod " "ipmi_devintf" "\n"))))
|
||||||
(chmod file #o555))
|
(chmod file #o555))
|
||||||
|
|
||||||
|
;; ------------------------------
|
||||||
|
;; nvidia-smi
|
||||||
|
|
||||||
|
(install-file "nvidia-smi" bindir)
|
||||||
|
|
||||||
;; ------------------------------
|
;; ------------------------------
|
||||||
;; patchelf
|
;; patchelf
|
||||||
(let* ((libc (assoc-ref inputs "libc"))
|
(let* ((libc (assoc-ref inputs "libc"))
|
||||||
|
@ -199,7 +205,8 @@
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(when (elf-file? file)
|
(when (elf-file? file)
|
||||||
(patch-elf file)))
|
(patch-elf file)))
|
||||||
(find-files out ".*\\.so")))
|
(find-files out ".*\\.so"))
|
||||||
|
(patch-elf (string-append bindir "/" "nvidia-smi")))
|
||||||
|
|
||||||
;; ------------------------------
|
;; ------------------------------
|
||||||
;; Create short name symbolic links
|
;; Create short name symbolic links
|
||||||
|
|
Loading…
Reference in a new issue