From 384b53d24ff068a1d5f38053f6f72b65c0dafa80 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 10 Jul 2025 13:12:42 +0100 Subject: [PATCH] gnu: Add go-github-com-opencontainers-runc. * gnu/packages/golang-xyz.scm (go-github-com-opencontainers-runc): New variable. Change-Id: I90f3c3025c8a5d0e7315e27ad4ff7d3ebb0ccfbd --- gnu/packages/golang-xyz.scm | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3608cdc3054c278f4e0c6596009a3de88d23ecf1..6add96bbdbd1d370ccdb191ae8614ec456f64f88 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14661,6 +14661,69 @@ digests with little effort.") container image format spec (OCI Image Format).") (license license:asl2.0))) +(define-public go-github-com-opencontainers-runc + (package + (name "go-github-com-opencontainers-runc") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/opencontainers/runc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0midvxwmj4fvhy5mqv616bhlx39j0gd6y890adx7dnz5in506ym1")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor"))))) + (build-system go-build-system) + (arguments + (list + #:go go-1.24 + #:import-path "github.com/opencontainers/runc" + ;; Most tests require additinoal set up and downloading images from + ;; Internet. + #:test-subdirs #~(list "." + "libcontainer/capabilities" + "libcontainer/devices" + "libcontainer/intelrdt" + "libcontainer/internal/userns" + "libcontainer/logs" + "libcontainer/nsenter/test" + "libcontainer/specconv" + "libcontainer/system" + "libcontainer/system/kernelversion" + "libcontainer/utils"))) + (propagated-inputs + (list go-github-com-checkpoint-restore-go-criu-v6 + go-github-com-containerd-console + go-github-com-coreos-go-systemd-v22 + go-github-com-cyphar-filepath-securejoin + go-github-com-docker-go-units + go-github-com-godbus-dbus-v5 + go-github-com-moby-sys-capability + go-github-com-moby-sys-mountinfo + go-github-com-moby-sys-user + go-github-com-moby-sys-userns + go-github-com-mrunalp-fileutils + go-github-com-opencontainers-cgroups + go-github-com-opencontainers-runtime-spec + go-github-com-opencontainers-selinux + go-github-com-seccomp-libseccomp-golang + go-github-com-sirupsen-logrus + go-github-com-urfave-cli + go-github-com-vishvananda-netlink + go-golang-org-x-net + go-golang-org-x-sys + go-google-golang-org-protobuf)) + (home-page "https://github.com/opencontainers/runc") + (synopsis "Tool for running containers according to the OCI specification") + (description + "@code{runc} is a CLI tool and library for spawning and running +containers on Linux according to the OCI specification.") + (license license:asl2.0))) + ;; XXX: Find a way to source from specification-runtime-spec. (define-public go-github-com-opencontainers-runtime-spec (package