From 4ef89c00cbff72a8993267168732f33d524cd01e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Oct 2025 15:55:41 +0100 Subject: [PATCH] gnu: Add go-tags-cncf-io-container-device-interface. * gnu/packages/golang-xyz.scm (go-tags-cncf-io-container-device-interface): New variable. Change-Id: I3e7d7fa1709444c484b5d16bfb74f3e9d48a6c7e Reviewed-by: Arthur Rodrigues --- gnu/packages/golang-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a2310670e5d5f5e0de506b3af69aa3532512d9d5..8628fbac52d8dd75059bc3a24fe3322a2f80567c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -25561,6 +25561,58 @@ system calls. It allows one to safely call Unveil / Pledge on non-OpenBSD operating systems.") (license license:isc))) +(define-public go-tags-cncf-io-container-device-interface + (package + (name "go-tags-cncf-io-container-device-interface") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cncf-tags/container-device-interface") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wpp8fsrfjmgfkwwanakbigf68khwycdxbmr82k309fawfpbz7fj")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - tags.cncf.io/container-device-interface/cmd/cdi + ;; - tags.cncf.io/container-device-interface/specs-go + ;; - tags.cncf.io/container-device-interface/schema + ;; - tags.cncf.io/container-device-interface/cmd/validate + (for-each delete-file-recursively + (list"cmd" "schema")))))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "tags.cncf.io/container-device-interface")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-fsnotify-fsnotify + go-github-com-opencontainers-runtime-spec + go-github-com-opencontainers-runtime-tools + go-golang-org-x-mod + go-golang-org-x-sys + go-gopkg-in-yaml-v3 + go-sigs-k8s-io-yaml)) + (home-page "https://tags.cncf.io/container-device-interface") + (synopsis "CNCF's Container Device Interface") + (description + "This package provides @acronym{Cloud Native Computing Foundation, CNCF}'s +@acronym{CDI, Container Device Interface} specification, for +container-runtimes, to support third-party devices. It also includes +@code{tags.cncf.io/container-device-interface/specs-go} submodule.") + (license license:asl2.0))) + +;; To make importer happy. +(define-public go-tags-cncf-io-container-device-interface-specs-go + go-tags-cncf-io-container-device-interface) + (define-public go-zgo-at-jfmt (package (name "go-zgo-at-jfmt")