summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-21 15:57:47 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-30 17:11:25 +0000
commit9af9fd201d00275977a4dd56a8b3124eea71e891 (patch)
tree0d01a69811db8e8768230e71c8833b801702ee21 /gnu
parent0c7b7864fb0e054f7e571beb41a6f00c734f3a42 (diff)
gnu: Add go-github-com-containernetworking-cni.
* gnu/packages/golang-web.scm (go-github-com-containernetworking-cni): New variable. Change-Id: Ie269481e616ef68faf066fe43c4a13414ffe75a3 Reviewed-by: Arthur Rodrigues <arthurhdrodrigues@proton.me>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-web.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index b1f4cc73250..ef2bcd486cc 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2404,6 +2404,47 @@ Any}.")
(list go-github-com-gogo-protobuf
go-google-golang-org-protobuf))))
+(define-public go-github-com-containernetworking-cni
+ (package
+ (name "go-github-com-containernetworking-cni")
+ (version "1.3.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/containernetworking/cni")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1x4apykvfwbx282hgrc9151rb1kx9w40kzfv78x548hrryqa7rn5"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Submodules with their own go.mod files and packaged separately:
+ ;;
+ ;; - github.com/containernetworking/cni/plugins/debug
+ (delete-file-recursively "plugins/debug")))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/containernetworking/cni"
+ #:test-flags
+ ;; Some tests depend on go modules
+ #~(list "-skip" "TestLibcni|TestInvoke|TestLegacyExamples|TestTesthelpers")))
+ (native-inputs
+ (list go-github-com-onsi-ginkgo-v2
+ go-github-com-onsi-gomega))
+ (propagated-inputs
+ (list go-github-com-vishvananda-netns))
+ (home-page "https://www.cni.dev/")
+ (synopsis "Container Network Interface")
+ (description
+ "This package provides a specification and libraries for writing plugins to
+configure network interfaces in Linux containers, along with a number of
+supported plugins.")
+ (license license:asl2.0)))
+
(define-public go-github-com-coreos-go-oidc
(package
(name "go-github-com-coreos-go-oidc")