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:
Hilton Chain 2026-01-12 20:33:51 +08:00
parent 722bb464e0
commit 42af687f97
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -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
#~(modify-phases %standard-phases
(replace 'check (replace 'check
(lambda args (lambda args
(with-directory-excursion "test" (with-directory-excursion "test"
(apply (assoc-ref %standard-phases 'check) args)))) (apply (assoc-ref %standard-phases 'check) args))))
(add-after 'unpack 'fix-libnvidia (add-after 'unpack 'fix-libnvidia
(lambda _ (lambda* (#:key inputs #:allow-other-keys)
(substitute* "nvidia-htop.py" (substitute* "nvidia-htop.py"
(("nvidia-smi") (("nvidia-smi" file)
(string-append #$(this-package-input (search-input-file inputs (in-vicinity "bin" file)))))))))
"nvidia-driver")
"/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