gnu: Add go-github-com-opencontainers-cgroups.

* gnu/packages/golang-xyz.scm (go-github-com-opencontainers-cgroups): New variable.

Change-Id: I933ada31b48c363e7ba191869281b614e14c2942
This commit is contained in:
Sharlatan Hellseher 2025-07-08 20:16:24 +01:00
parent 16f55bc632
commit ac6f5d63b8
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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")