gnu: Add protobuf-3.20.

* gnu/packages/protobuf.scm (protobuf-3.20): New variable.
This commit is contained in:
Ricardo Wurmus 2023-05-05 13:01:52 +02:00
parent 99627b86c8
commit 484b843c2e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -166,6 +166,33 @@ (define-public protobuf
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