guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit dc6886ae0de3059e763aef426b44c459f6643c2e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed May 28 23:06:12 2025 +0100
gnu: Add go-github-com-aclements-go-perfevent.
* gnu/packages/golang-xyz.scm (go-github-com-aclements-go-perfevent): New
variable.
Change-Id: I6e8607fae0e3377d02d692f644fbbd88366bcc12
---
gnu/packages/golang-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 4c875e2e66..ad8761971a 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -713,6 +713,46 @@ scripts (writing systems). Languages are represented by a
defined list of
constants, while scripts are represented by RangeTable.")
(license license:expat)))
+(define-public go-github-com-aclements-go-perfevent
+ (package
+ (name "go-github-com-aclements-go-perfevent")
+ (version "0.0.0-20240703205258-f34bb3e1a4e4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aclements/go-perfevent")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1xlm7zi7k2ynla8z18n4zbz76n5f3iw5wz8axnn95jhdgzw07xr5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/aclements/go-perfevent"
+ #:test-flags
+ ;; Disable tests requiring root access and failing with error:
+ ;; permission denied (consider: echo 0 | sudo tee
+ ;; /proc/sys/kernel/perf_event_paranoid)
+ #~(list "-skip" (string-join
+ (list "TestBasic"
+ "TestOpenGroup"
+ "TestOpenOne"
+ "TestResetRunning"
+ "TestResetStopped"
+ "TestStop"
+ "TestTotal")
+ "|"))))
+ (propagated-inputs
+ (list go-golang-org-x-sys))
+ (home-page "https://github.com/aclements/go-perfevent")
+ (synopsis "Golang API for Linux's @code{perf_event_open}")
+ (description
+ "This package provides a simple Go API to Linux's @code{perf_event_open},
+supporting event counters and a basic set of events.")
+ (license license:bsd-3)))
+
(define-public go-github-com-adhocore-gronx
(package
(name "go-github-com-adhocore-gronx")