From 432b14520fab0f80372283c2db75aaea4bc25316 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sun, 30 Jan 2022 00:04:38 +0100 Subject: [PATCH] nongnu: Add nvidia-htop. * nongnu/packages/nvidia.scm (nvidia-htop): New variable. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/nvidia.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 98645dd..061b06c 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -150,6 +150,34 @@ and usage.") Management Library") (license license-gnu:bsd-3))) +(define-public nvidia-htop + (package + (name "nvidia-htop") + (version "1.0.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "nvidia-htop" version)) + (sha256 + (base32 + "0lv9cpccpkbg0d577irm1lp9rx6pacyk2pk9v41k9s9hyl4b7hvx")))) + (build-system python-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-libnvidia + (lambda _ + (substitute* "nvidia-htop.py" + (("nvidia-smi") + (string-append #$(this-package-input + "nvidia-driver") + "/bin/nvidia-smi")))))))) + (inputs (list nvidia-driver)) + (propagated-inputs (list python-termcolor)) + (home-page "https://github.com/peci1/nvidia-htop") + (synopsis "Tool to enrich the output of nvidia-smi") + (description "This package provides tool for enriching the output of +nvidia-smi.") + (license license-gnu:bsd-3))) + (define-public nvidia-driver (package (name "nvidia-driver")