~ruther/guix-local

5847089b4998bad658541ee81086bf77d38bfae6 — Sharlatan Hellseher 1 year, 4 months ago 953d216
gnu: Add go-github-com-grpc-ecosystem-grpc-gateway-v2.

* gnu/packages/golang-web.scm (go-github-com-grpc-ecosystem-grpc-gateway-v2): New variable.

Change-Id: I742349d17d25b988993b61b6c31c19afdb6b75eb
1 files changed, 41 insertions(+), 0 deletions(-)

M gnu/packages/golang-web.scm
M gnu/packages/golang-web.scm => gnu/packages/golang-web.scm +41 -0
@@ 4635,6 4635,47 @@ responses.  It is only suitable for use as a \"private\" cache (i.e. for a
web-browser or an API-client and not for a shared proxy).")
    (license license:expat)))

(define-public go-github-com-grpc-ecosystem-grpc-gateway-v2
  (package
    (name "go-github-com-grpc-ecosystem-grpc-gateway-v2")
    (version "2.26.3")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/grpc-ecosystem/grpc-gateway")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1pw845x9bqhj64pxvyaafacq0mmmblbf5z4r2arprhdnb05czx3v"))))
    (build-system go-build-system)
    (arguments
     (list
      #:skip-build? #t
      #:import-path "github.com/grpc-ecosystem/grpc-gateway/v2"))
    (propagated-inputs
     (list go-github-com-antihax-optional
           go-github-com-google-go-cmp
           go-github-com-rogpeppe-fastuuid
           go-golang-org-x-oauth2
           go-golang-org-x-text
           go-google-golang-org-genproto-googleapis-api
           go-google-golang-org-genproto-googleapis-rpc
           go-google-golang-org-grpc
           go-google-golang-org-protobuf
           go-gopkg-in-yaml-v3))
    (home-page "https://github.com/grpc-ecosystem/grpc-gateway")
    (synopsis "gRPC to JSON proxy generator following the gRPC HTTP spec")
    (description
     "The @code{gRPC-Gateway} is a plugin of the Google protocol buffers
compiler @@url{https://github.com/protocolbuffers/protobuf,protoc}.  It reads
protobuf service definitions and generates a reverse-proxy server which
translates a RESTful HTTP API into @code{gRPC}.  This server is generated
according to the
@url{https://github.com/googleapis/googleapis/raw/master/google/api/http.proto#L46,(code
google.api.http)} annotations in your service definitions.")
    (license license:bsd-3)))

(define-public go-github-com-hashicorp-go-cleanhttp
  (package
    (name "go-github-com-hashicorp-go-cleanhttp")