~ruther/guix-local

384b53d24ff068a1d5f38053f6f72b65c0dafa80 — Sharlatan Hellseher a year ago dc119f0
gnu: Add go-github-com-opencontainers-runc.

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

Change-Id: I90f3c3025c8a5d0e7315e27ad4ff7d3ebb0ccfbd
1 files changed, 63 insertions(+), 0 deletions(-)

M gnu/packages/golang-xyz.scm
M gnu/packages/golang-xyz.scm => gnu/packages/golang-xyz.scm +63 -0
@@ 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