~ruther/guix-local

3fabddae1cbccca55817e75f5e18f244e2a96725 — Patrick Norton 10 months ago 0c75247
gnu: Add go-storj-io-picobuf.

* gnu/packages/golang-web.scm (go-storj-io-picobuf, protoc-gen-pico):
New variables.

Change-Id: I75ef7c1d45f30c96c4a1d7cb56cd03f5cd7a8efe
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 46 insertions(+), 0 deletions(-)

M gnu/packages/golang-web.scm
M gnu/packages/golang-web.scm => gnu/packages/golang-web.scm +46 -0
@@ 16766,6 16766,37 @@ Kubernetes components which are using nftables.")
Procedure Call (RPC) framework.")
    (license license:expat)))

(define-public go-storj-io-picobuf
  (package
    (name "go-storj-io-picobuf")
    (version "0.0.4")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/storj/picobuf")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "18h4ashs0i8qikqi7x30yy7y72xkxcc57xdxry6nssdzcjym4w5n"))))
    (build-system go-build-system)
    (arguments
     (list
      #:test-flags
      #~(list "-skip" "TestMessageSize")
      #:import-path "storj.io/picobuf"))
    (native-inputs
     (list go-github-com-zeebo-assert))
    (propagated-inputs
     (list go-google-golang-org-protobuf))
    (home-page "https://storj.io/picobuf")
    (synopsis "Replacement for subset of protobuf")
    (description
     "Picobuf is a minimal replacement for google.golang.org/protobuf with
focusing on small binary size.  It does not support the whole Protocol Buffers
feature set and features are added on as the need arises.")
    (license license:expat)))

;;;
;;; Executables:
;;;


@@ 17009,6 17040,21 @@ carries no encryption keys and cannot decode the traffic that it proxies.")))
    (propagated-inputs '())
    (inputs '())))

(define-public protoc-gen-pico
  (package/inherit go-storj-io-picobuf
    (name "protoc-gen-pico")
    (arguments
     (substitute-keyword-arguments
         (package-arguments go-storj-io-picobuf)
       ((#:install-source? _ #t) #f)
       ((#:skip-build? _ #t) #f)
       ((#:tests? _ #t) #f)
       ((#:import-path _) "storj.io/picobuf/protoc-gen-pico")
       ((#:unpack-path _ "") "storj.io/picobuf")))
    (native-inputs (package-propagated-inputs go-storj-io-picobuf))
    (propagated-inputs '())
    (inputs '())))

(define-public swag
  (package/inherit go-github-com-swaggo-swag
    (name "swag")