From: Steve George <steve@futurile.net>
To: 61046@debbugs.gnu.org
Cc: Tobias Geerinckx-Rice <me@tobias.gr>,
Steve George <steve@futurile.net>,
Leo Famulari <leo@famulari.name>
Subject: [bug#61046] [PATCH 1/1] gnu: Add zenmonitor3 * gnu/package/linux.scm (zenmonitor3): New variable.
Date: Tue, 24 Jan 2023 21:34:04 +0000 [thread overview]
Message-ID: <20230124213404.117503-2-steve@futurile.net> (raw)
In-Reply-To: <20230124213404.117503-1-steve@futurile.net>
---
gnu/packages/linux.scm | 49 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 250eacd076..2a590086ed 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -6694,6 +6694,55 @@ (define-public x86-energy-perf-policy
cpufreq sub-system is enabled or not.")
(license license:gpl2)))
+(define-public zenmonitor3
+ (package
+ (name "zenmonitor3")
+ (version "2e68a31b0248699ec1f3caa1782d9b520222242a")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.exozy.me/a/zenmonitor3")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "18rwk2jm2zjh15hdwqszyga2g7cyifblch0bska3drlm7ivqi2hx"))))
+ (build-system gnu-build-system)
+ (native-inputs (list pkg-config))
+ (inputs (list glib gtk+ gnu-make ncurses polkit-duktape))
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'build 'build-cli
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke "make" "build-cli" make-flags)))
+ (add-after 'install 'install-cli
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke
+ `("make" "install-cli"
+ ,@make-flags))))
+ (add-after 'install-cli 'install-polkit
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append out "/share/applications"))
+ (install-file "data/zenmonitor-root.desktop.in"
+ (string-append out "/share/applications"))
+ (mkdir-p (string-append out "/share/polkit-1/actions"))
+ (install-file "data/org.pkexec.zenmonitor.policy.in"
+ (string-append out
+ "/share/polkit-1/actions"))))))
+ #:tests? #f
+ #:make-flags (list (string-append "CC="
+ ,(cc-for-target))
+ (string-append "PREFIX=" %output))))
+ (home-page "https://git.exozy.me/a/zenmonitor3")
+ (synopsis "Monitoring software for AMD Zen-based CPUs")
+ (description
+ "Graphical and CLI monitoring of CPU temperature, voltage, power
+and frequency on AMD Zen family CPUs. Requires the zenpower3 and MSR
+kernel drivers.")
+ (license license:expat)))
+
(define-public haveged
(package
(name "haveged")
--
2.39.1
prev parent reply other threads:[~2023-01-24 21:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 21:34 [bug#61045] [PATCH 0/1] Adding Zenmonitor3 patch Steve George
2023-01-24 21:34 ` Steve George [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230124213404.117503-2-steve@futurile.net \
--to=steve@futurile.net \
--cc=61046@debbugs.gnu.org \
--cc=leo@famulari.name \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.