summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-22 15:55:41 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-30 17:11:26 +0000
commit4ef89c00cbff72a8993267168732f33d524cd01e (patch)
tree661b5d506353a02ca700741edaa9be74054349a5 /gnu
parentccf7b57b0e3401d8ffab1a37277d318cd23bcb94 (diff)
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 <arthurhdrodrigues@proton.me>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-xyz.scm52
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index a2310670e5d..8628fbac52d 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")