mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
gnu: Add protobuf-3.20.
* gnu/packages/protobuf.scm (protobuf-3.20): New variable.
This commit is contained in:
parent
99627b86c8
commit
484b843c2e
1 changed files with 27 additions and 0 deletions
|
@ -166,6 +166,33 @@ (define-public protobuf
|
||||||
internal RPC protocols and file formats.")
|
internal RPC protocols and file formats.")
|
||||||
(license license:bsd-3)))
|
(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.
|
;; Tensorflow requires version 3.6 specifically.
|
||||||
(define-public protobuf-3.6
|
(define-public protobuf-3.6
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue