gnu: Add protobuf-c.

* gnu/packages/protobuf.scm (protobuf-c): New variable.
This commit is contained in:
Ricardo Wurmus 2017-10-18 01:41:14 +02:00
parent dd12d4aad0
commit bfd073319c
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -25,9 +25,10 @@ (define-module (gnu packages protobuf)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module ((guix licenses) #:use-module ((guix licenses)
#:select (bsd-3)) #:select (bsd-2 bsd-3))
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages gcc) #:use-module (gnu packages gcc)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)) #:use-module (gnu packages python))
(define-public protobuf (define-public protobuf
@ -52,6 +53,31 @@ (define-public protobuf
internal RPC protocols and file formats.") internal RPC protocols and file formats.")
(license bsd-3))) (license bsd-3)))
(define-public protobuf-c
(package
(name "protobuf-c")
(version "1.3.0")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/protobuf-c/protobuf-c/"
"releases/download/v" version
"/protobuf-c-" version ".tar.gz"))
(sha256
(base32
"18aj4xfv26zjmj44zbb01wk90jl7y4aj5xvbzz4gg748kdxavjax"))))
(build-system gnu-build-system)
(inputs `(("protobuf" ,protobuf)))
(native-inputs `(("pkg-config" ,pkg-config)))
(home-page "https://github.com/protobuf-c/protobuf-c")
(synopsis "Protocol Buffers implementation in C")
(description
"This is protobuf-c, a C implementation of the Google Protocol Buffers
data serialization format. It includes @code{libprotobuf-c}, a pure C library
that implements protobuf encoding and decoding, and @code{protoc-c}, a code
generator that converts Protocol Buffer @code{.proto} files to C descriptor
code.")
(license bsd-2)))
(define-public python-protobuf (define-public python-protobuf
(package (package
(name "python-protobuf") (name "python-protobuf")