From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1aYU-0003Oz-4u for guix-patches@gnu.org; Fri, 21 Apr 2017 11:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1aYS-0000Lu-JO for guix-patches@gnu.org; Fri, 21 Apr 2017 11:33:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1aYS-0000Lq-Fg for guix-patches@gnu.org; Fri, 21 Apr 2017 11:33:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d1aYS-00039A-9e for guix-patches@gnu.org; Fri, 21 Apr 2017 11:33:04 -0400 Subject: bug#26590: gnu: Add libbson. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1XjZ-0006pA-IP for guix-patches@gnu.org; Fri, 21 Apr 2017 08:32:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1XjY-0002Z3-DR for guix-patches@gnu.org; Fri, 21 Apr 2017 08:32:21 -0400 Received: from [2a01:e35:87a7:5290:226:b6ff:fe11:6912] (port=52648 helo=mail.nybble.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d1XjX-0002Xt-Qc for guix-patches@gnu.org; Fri, 21 Apr 2017 08:32:20 -0400 Received: by nybble.fr (OpenSMTPD) with ESMTPSA id 9f8d687c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 21 Apr 2017 12:05:34 +0000 (UTC) Date: Fri, 21 Apr 2017 14:05:30 +0200 From: Corentin Bocquillon Message-ID: <20170421120530.GA24567@nibupac> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-Add-libbson.patch" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26590@debbugs.gnu.org >From 73b6d5e67cc9bee67d88f50c9319dcaa6f81f60b Mon Sep 17 00:00:00 2001 From: Corentin Bocquillon Date: Fri, 21 Apr 2017 13:11:24 +0200 Subject: [PATCH] gnu: Add libbson. * gnu/packages/serialization.scm (libbson): New variables. --- gnu/packages/serialization.scm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 9e073b7a9..1a5313377 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -35,7 +35,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 +288,25 @@ 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))) -- 2.12.2