guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 3fabddae1cbccca55817e75f5e18f244e2a96725
Author: Patrick Norton <[email protected]>
AuthorDate: Mon Nov 24 19:07:42 2025 -0500
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 <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-web.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index dab4167d8f..e8381ab54e 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -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")