aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/protobuf.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-05-05 13:01:52 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-05-05 15:39:28 +0200
commit484b843c2e59fa7eddacfe1a775818297ec4c350 (patch)
treed357866572415443c4b9d16a448a9ce128c249c9 /gnu/packages/protobuf.scm
parent99627b86c8aee62e276d71889da91cb5eaaf02cb (diff)
downloadguix-484b843c2e59fa7eddacfe1a775818297ec4c350.tar.gz
guix-484b843c2e59fa7eddacfe1a775818297ec4c350.zip
gnu: Add protobuf-3.20.
* gnu/packages/protobuf.scm (protobuf-3.20): New variable.
Diffstat (limited to 'gnu/packages/protobuf.scm')
-rw-r--r--gnu/packages/protobuf.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index 23feef7ba5..7269f01c62 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -166,6 +166,33 @@ yet extensible format. Google uses Protocol Buffers for almost all of its
internal RPC protocols and file formats.")
(license license:bsd-3)))
+;; Needed for python-mysql-connector-python
+(define-public protobuf-3.20
+ (package
+ (inherit protobuf)
+ (name "protobuf")
+ (version "3.20.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/protocolbuffers/"
+ "protobuf/releases/download/v" version
+ "/protobuf-cpp-" version ".tar.gz"))
+ (modules '((guix build utils)))
+ (snippet '(delete-file-recursively "third_party"))
+ (sha256
+ (base32
+ "1hsscx9jm8qv3afgwc764rx9sx1ylkrr54xw1wc0mfjbl8mpw5m0"))))
+ (build-system gnu-build-system)
+ (arguments (substitute-keyword-arguments (package-arguments protobuf)
+ ;; XXX: insists on using bundled googletest
+ ((#:tests? _ #f) #false)
+ ((#:configure-flags _ #f)
+ #~(list))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (delete 'set-c++-standard)))))))
+
;; Tensorflow requires version 3.6 specifically.
(define-public protobuf-3.6
(package