aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCorentin Bocquillon <corentin@nybble.fr>2017-04-21 14:05:30 +0200
committerLeo Famulari <leo@famulari.name>2017-04-21 15:57:52 -0400
commit9d62551216abe83d949caa9508d039d97a96d7b3 (patch)
tree96c08a51cb48dee1a55f22bb62cfdaf90f951b0e /gnu
parenteeaea41236392cdd13fc2fb39ad6bca6cffe32e8 (diff)
downloadguix-9d62551216abe83d949caa9508d039d97a96d7b3.tar
guix-9d62551216abe83d949caa9508d039d97a96d7b3.tar.gz
gnu: Add libbson.
* gnu/packages/serialization.scm (libbson): New variables. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/serialization.scm25
1 files changed, 24 insertions, 1 deletions
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index eb3cb26759..5908f50d68 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2017 Corentin Bocquillon <corentin@nybble.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -35,7 +36,8 @@
#:use-module (gnu packages documentation)
#:use-module (gnu packages lua)
#:use-module (gnu packages pkg-config)
- #:use-module (gnu packages python))
+ #:use-module (gnu packages python)
+ #:use-module (gnu packages perl))
(define-public cereal
(package
@@ -287,3 +289,24 @@ it a convenient format to store user input files.")
"Cap'n Proto is a very fast data interchange format and capability-based
RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster.")
(license license:expat)))
+
+(define-public libbson
+ (package
+ (name "libbson")
+ (version "1.6.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/mongodb/libbson/releases/"
+ "download/" version "/libbson-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1fj4554msq0rrz14snbj908dzqj46gh7jg9w9j0akn2b7q911m5a"))))
+ (build-system gnu-build-system)
+ (native-inputs `(("perl" ,perl)))
+ (home-page "http://mongoc.org/libbson/current/index.html")
+ (synopsis "C BSON library")
+ (description "Libbson can create and parse BSON documents. It can also
+convert JSON documents to BSON and the opposite. BSON stands for Binary JSON,
+it is comparable to protobuf.")
+ (license license:asl2.0)))