* [bug#49584] [PATCH] gnu: Add powercap.
@ 2021-07-15 21:27 Morgan.J.Smith
2021-07-19 13:29 ` bug#49584: " Efraim Flashner
0 siblings, 1 reply; 2+ messages in thread
From: Morgan.J.Smith @ 2021-07-15 21:27 UTC (permalink / raw)
To: 49584; +Cc: Morgan Smith
From: Morgan Smith <Morgan.J.Smith@outlook.com>
* gnu/packages/linux.scm (powercap): New variable.
---
gnu/packages/linux.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 41902e7785..295e456488 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1651,6 +1651,34 @@ at login. Local and dynamic reconfiguration are its key features.")
;;; Miscellaneous.
;;;
+(define-public powercap
+ (package
+ (name "powercap")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/powercap/powercap")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1hp2i1d195v0n4jgvgaymkxlpgyhn07ic273gkda95lz65cdfcgm"))))
+ (build-system cmake-build-system)
+ (arguments
+ '(#:configure-flags
+ '("-DBUILD_SHARED_LIBS=On" "-DCMAKE_BUILD_TYPE=Release")))
+ (home-page "https://github.com/powercap/powercap")
+ (synopsis "C interface to the Linux power capping framework
+(sysfs interface)")
+ (description "C interface to the Linux power capping framework (sysfs
+interface). It includes an implementation for working with Intel Running
+Average Power Limit (RAPL).
+
+It provides the commands powercap-info and powercap-set.")
+ (license license:bsd-3)))
+
(define-public powerstat
(package
(name "powerstat")
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#49584: [PATCH] gnu: Add powercap.
2021-07-15 21:27 [bug#49584] [PATCH] gnu: Add powercap Morgan.J.Smith
@ 2021-07-19 13:29 ` Efraim Flashner
0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2021-07-19 13:29 UTC (permalink / raw)
To: Morgan.J.Smith; +Cc: 49584-done
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
After reading the synopsis and description and then seeing it again on
their repo's README I went and borrowed the ones from Debian, which I
found clearer.
Patch pushed!
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-19 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-15 21:27 [bug#49584] [PATCH] gnu: Add powercap Morgan.J.Smith
2021-07-19 13:29 ` bug#49584: " Efraim Flashner
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).