all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#61045] [PATCH 0/1] Adding Zenmonitor3 patch
@ 2023-01-24 21:34 Steve George
  2023-01-24 21:34 ` [bug#61046] [PATCH 1/1] gnu: Add zenmonitor3 * gnu/package/linux.scm (zenmonitor3): New variable Steve George
  0 siblings, 1 reply; 2+ messages in thread
From: Steve George @ 2023-01-24 21:34 UTC (permalink / raw)
  To: 61045; +Cc: Tobias Geerinckx-Rice, Steve George, Leo Famulari

Inexperienced contributor, would appreciate any review or comments.


Steve George (1):
  gnu: Add zenmonitor3 * gnu/package/linux.scm (zenmonitor3): New
    variable.

 gnu/packages/linux.scm | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

-- 
2.39.1





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [bug#61046] [PATCH 1/1] gnu: Add zenmonitor3 * gnu/package/linux.scm (zenmonitor3): New variable.
  2023-01-24 21:34 [bug#61045] [PATCH 0/1] Adding Zenmonitor3 patch Steve George
@ 2023-01-24 21:34 ` Steve George
  0 siblings, 0 replies; 2+ messages in thread
From: Steve George @ 2023-01-24 21:34 UTC (permalink / raw)
  To: 61046; +Cc: Tobias Geerinckx-Rice, Steve George, Leo Famulari

---

 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-24 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24 21:34 [bug#61045] [PATCH 0/1] Adding Zenmonitor3 patch Steve George
2023-01-24 21:34 ` [bug#61046] [PATCH 1/1] gnu: Add zenmonitor3 * gnu/package/linux.scm (zenmonitor3): New variable Steve George

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.