mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2026-01-25 03:54:58 -06:00
nongnu: nvidia-htop: Revise style.
* nongnu/packages/nvidia.scm (nvidia-htop) [arguments] <#:phases>: Use search-input-file. [synopsis, description]: Revise.
This commit is contained in:
parent
722bb464e0
commit
42af687f97
1 changed files with 15 additions and 15 deletions
|
|
@ -992,25 +992,25 @@ laptops.")
|
||||||
(base32 "1d5cd4cp7swq5np8b9ryibhg2zpfwzh2dzbsvsrp0gx33krxjvyj"))))
|
(base32 "1d5cd4cp7swq5np8b9ryibhg2zpfwzh2dzbsvsrp0gx33krxjvyj"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases #~(modify-phases %standard-phases
|
(list #:phases
|
||||||
(replace 'check
|
#~(modify-phases %standard-phases
|
||||||
(lambda args
|
(replace 'check
|
||||||
(with-directory-excursion "test"
|
(lambda args
|
||||||
(apply (assoc-ref %standard-phases 'check) args))))
|
(with-directory-excursion "test"
|
||||||
(add-after 'unpack 'fix-libnvidia
|
(apply (assoc-ref %standard-phases 'check) args))))
|
||||||
(lambda _
|
(add-after 'unpack 'fix-libnvidia
|
||||||
(substitute* "nvidia-htop.py"
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(("nvidia-smi")
|
(substitute* "nvidia-htop.py"
|
||||||
(string-append #$(this-package-input
|
(("nvidia-smi" file)
|
||||||
"nvidia-driver")
|
(search-input-file inputs (in-vicinity "bin" file)))))))))
|
||||||
"/bin/nvidia-smi"))))))))
|
|
||||||
(native-inputs (list python-pytest python-setuptools))
|
(native-inputs (list python-pytest python-setuptools))
|
||||||
(inputs (list nvidia-driver))
|
(inputs (list nvidia-driver))
|
||||||
(propagated-inputs (list python-termcolor))
|
(propagated-inputs (list python-termcolor))
|
||||||
(home-page "https://github.com/peci1/nvidia-htop")
|
(home-page "https://github.com/peci1/nvidia-htop")
|
||||||
(synopsis "Tool to enrich the output of nvidia-smi")
|
(synopsis "Enriched nvidia-smi output")
|
||||||
(description "This package provides tool for enriching the output of
|
(description
|
||||||
nvidia-smi.")
|
"This package provides a tool for enriching the output of
|
||||||
|
@command{nvidia-smi}.")
|
||||||
(license license-gnu:bsd-3)))
|
(license license-gnu:bsd-3)))
|
||||||
|
|
||||||
(define-public nvidia-nvml
|
(define-public nvidia-nvml
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue