From c2d1cc342b4e84661869476464b57913087118b5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 15:16:44 +0000 Subject: [PATCH] gnu: Add go-github-com-containerd-cgroups-v3. * gnu/packages/golang-xyz.scm (go-github-com-containerd-cgroups-v3): New variable. Change-Id: Ieb03de8524cccec8586c704653cffb4f650a7b1e --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index befdcd39dbfd50acb93416c9d58bd1d6a6d7fd80..a10d5fca50703158ec3636068e1544ff9a3149f2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2196,6 +2196,43 @@ cgroup uses the OCI runtime-spec found @url{https://github.com/opencontainers/runtime-spec,here}.") (license license:asl2.0))) +(define-public go-github-com-containerd-cgroups-v3 + (package + (inherit go-github-com-containerd-cgroups) + (name "go-github-com-containerd-cgroups-v3") + (version "3.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containerd/cgroups") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09fkbhkx0hmcfcym3zl0dshbhj3p692xg7d6y8pj732g64zk6v4k")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodule(s) with their own go.mod files and packed as + ;; separated packages: + ;; + ;; - github.com/containerd/cgroups/cmd cgctl + (delete-file-recursively "cmd"))))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-containerd-cgroups) + ((#:import-path _) "github.com/containerd/cgroups/v3"))) + (propagated-inputs + (list go-github-com-cilium-ebpf + go-github-com-containerd-log + go-github-com-coreos-go-systemd-v22 + go-github-com-docker-go-units + go-github-com-godbus-dbus-v5 + go-github-com-moby-sys-userns + go-github-com-opencontainers-runtime-spec + go-golang-org-x-sys + go-google-golang-org-protobuf)))) + (define-public go-github-com-containerd-fifo (package (name "go-github-com-containerd-fifo")