guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ac6f5d63b87dfc4a155f8363a408c1da5d1a4fc2
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jul 8 20:16:24 2025 +0100

    gnu: Add go-github-com-opencontainers-cgroups.
    
    * gnu/packages/golang-xyz.scm (go-github-com-opencontainers-cgroups): New 
variable.
    
    Change-Id: I933ada31b48c363e7ba191869281b614e14c2942
---
 gnu/packages/golang-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c292dde243..301ea5a80e 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -14210,6 +14210,52 @@ syslog, file and memory.  Multiple backends can be 
utilized with different log
 levels per backend and logger.")
     (license license:bsd-3)))
 
+(define-public go-github-com-opencontainers-cgroups
+  (package
+    (name "go-github-com-opencontainers-cgroups")
+    (version "0.0.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/opencontainers/cgroups";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0wwfknbj5zj9y07sdbzqg919ddz39xryp3n5vn94cn2zv3c1kwvr"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.24
+      #:import-path "github.com/opencontainers/cgroups"
+      #:test-flags
+      ;; Tests requiring root access to /sys/fs/cgroup.
+      #~(list "-skip" (string-join
+                       (list "TestParseCgroups"
+                             "TestHugetlbStatsNoUsageFile"
+                             "TestHugetlbStatsNoMaxUsageFile"
+                             "TestHugetlbStatsBadUsageFile"
+                             "TestHugetlbStatsBadMaxUsageFile"
+                             "TestInvalidCgroupPath"
+                             "TestTryDefaultCgroupRoot"
+                             "TestNilResources")
+                       "|"))))
+    (propagated-inputs
+     (list go-github-com-cilium-ebpf
+           go-github-com-coreos-go-systemd-v22
+           go-github-com-cyphar-filepath-securejoin
+           go-github-com-godbus-dbus-v5
+           go-github-com-moby-sys-mountinfo
+           go-github-com-moby-sys-userns
+           go-github-com-sirupsen-logrus
+           go-golang-org-x-sys))
+    (home-page "https://github.com/opencontainers/cgroups";)
+    (synopsis "OCI Project Template")
+    (description
+     "This package provides a useful boilerplate and organizational
+information for all OCI projects.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-opencontainers-go-digest
   (package
     (name "go-github-com-opencontainers-go-digest")

Reply via email to