summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorArthur Rodrigues <arthurhdrodrigues@proton.me>2026-04-03 15:43:25 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-04-09 16:23:08 +0100
commitcf39e233e5709ce2ba98ccd7612ecc30e162e092 (patch)
tree79bdd8d1aa419236d3308f4beda3f1ff9a04f8e8 /gnu
parent070ec325886ccb7332f38bce905e40ba156f884a (diff)
gnu: Add go-github-com-grpc-ecosystem-go-grpc-middleware-v2.
* gnu/packages/golang-web.scm (go-github-com-grpc-ecosystem-go-grpc-middleware-v2): New variable. Change-Id: I6e6f1d83ff6915a2525a8965b6b098b88876aa35 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-web.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index d1ee50f676..f17d06d0f1 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -8222,6 +8222,42 @@ and more, which can be a great generic building blocks that make it easy to
build multiple microservices easily.")
(license license:asl2.0)))
+(define-public go-github-com-grpc-ecosystem-go-grpc-middleware-v2
+ (package
+ (inherit go-github-com-grpc-ecosystem-go-grpc-middleware)
+ (name "go-github-com-grpc-ecosystem-go-grpc-middleware-v2")
+ (version "2.3.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/grpc-ecosystem/go-grpc-middleware")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0qbh34r44sfw9s05kdipmz49fcgvlpnns20d0lbwvw9g3qwa095r"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Submodules with their own go.mod files and packaged separately:
+ (for-each delete-file-recursively
+ (list ".bingo"
+ "examples"
+ "providers"
+ "interceptors/logging/examples"))))))
+ (arguments
+ (list
+ #:import-path "github.com/grpc-ecosystem/go-grpc-middleware/v2"
+ ;; Tests from files:
+ ;; * github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/protovalidate
+ ;; * github.com/grpc-ecosystem/go-grpc-middleware/v2/testing/
+ ;; testvalidate/v1/test_validate.pb.go
+ ;; require:
+ ;; * buf.build/go/protovalidate
+ ;; * buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate
+ ;; which require others unpackages Go libraries. All other tests pass.
+ #:tests? #f))))
+
(define-public go-github-com-grpc-ecosystem-grpc-gateway-v2
(package
(name "go-github-com-grpc-ecosystem-grpc-gateway-v2")