[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54335] [PATCH v3 08/10] gnu: Add go-google-golang-org-protobuf.
From: |
Dominic Martinez |
Subject: |
[bug#54335] [PATCH v3 08/10] gnu: Add go-google-golang-org-protobuf. |
Date: |
Mon, 4 Apr 2022 15:32:06 -0400 |
* gnu/packages/golang.scm (go-google-golang-org-protobuf): New variable.
---
I took this go-google-golang-org-protobuf definition from #54560. I had
disabled builds/tests before because this package has many subpackages and no
top-level files, which the go-build-system doesn't directly support, so this
modifications builds and tests all the subpackages.
gnu/packages/golang.scm | 43 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 23543a0c2b..db1ea44d8c 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9954,3 +9954,46 @@ (define-public go-github-com-songgao-water
library for Go that efficiently works with standard packages like io, bufio,
etc.. Use waterutil with it to work with TUN/TAP packets/frames.")
(license license:bsd-3)))
+
+(define-public go-google-golang-org-protobuf
+ (package
+ (name "go-google-golang-org-protobuf")
+ (version "1.28.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://go.googlesource.com/protobuf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1nzcc4qc00afi24nb7nlnwyzvvr6b8s8qdrn1sw085nygh2y2x8r"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "google.golang.org/protobuf"
+ #:phases
+ ;; Build and test all sub-packages
+ (let ((glob-path "google.golang.org/protobuf/..."))
+ (modify-phases %standard-phases
+ (replace 'build
+ (lambda args
+ (apply (assoc-ref %standard-phases
+ 'build)
+ `(,@args #:import-path
+ ,glob-path))))
+ (replace 'check
+ (lambda args
+ (apply (assoc-ref %standard-phases
+ 'check)
+ `(,@args #:import-path
+ ,glob-path))))))))
+ (native-inputs (list go-github-com-google-go-cmp-cmp))
+ (synopsis "Go support for Google's protocol buffers")
+ (description
+ "Go implementation for protocol buffers, which is a
+language-neutral, platform-neutral, extensible mechanism for serializing
+structured data. The protocol buffer language is a language for
+specifying the schema for structured data. This schema is compiled into
+language specific bindings.")
+ (home-page "https://go.googlesource.com/protobuf")
+ (license license:bsd-3)))
--
2.34.0
- [bug#54335] [PATCH v3 00/10] gnu: Add nebula., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 01/10] gnu: Add go-github-com-anmitsu-go-shlex., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 02/10] gnu: Add go-github-com-armon-go-radix., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 05/10] gnu: Add go-github-com-miekg-dns., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 03/10] gnu: Add go-github-com-cyberdelia-go-metrics-graphite., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 04/10] gnu: Add go-github-com-google-gopacket., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 06/10] gnu: Add go-github-com-nbrownus-go-metrics-prometheus., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 08/10] gnu: Add go-google-golang-org-protobuf.,
Dominic Martinez <=
- [bug#54335] [PATCH v3 09/10] gnu: Add go-github-com-skip2-go-qrcode., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 07/10] gnu: Add go-github-com-songgao-water., Dominic Martinez, 2022/04/04
- [bug#54335] [PATCH v3 10/10] gnu: Add nebula., Dominic Martinez, 2022/04/04