From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Gradl Subject: Re: [PATCH] Add msgpack Date: Thu, 02 Jun 2016 19:50:58 -0500 Message-ID: <87y46nyu19.fsf@openmailbox.org> References: <87wpmbuv6m.fsf@openmailbox.org> <20160601044947.GB20978@debian-netbook> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8dKX-0006Qh-D9 for guix-devel@gnu.org; Thu, 02 Jun 2016 20:51:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8dKT-0000ZK-7m for guix-devel@gnu.org; Thu, 02 Jun 2016 20:51:16 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:59587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8dKS-0000Xg-RE for guix-devel@gnu.org; Thu, 02 Jun 2016 20:51:13 -0400 In-Reply-To: <20160601044947.GB20978@debian-netbook> (Efraim Flashner's message of "Wed, 1 Jun 2016 07:49:47 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Efraim Flashner Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Thank you for your review! Efraim Flashner writes: > On Mon, May 30, 2016 at 03:50:41PM -0500, Lukas Gradl wrote: >>=20 >> Hello Guix, >>=20 >> Attached is a patch for the c/c++ version of msgpack. This is a >> dependency of the Ring. >>=20 >> Thank you! >>=20 > >> From 25eef52146bc84e83d90e429a0a2a5ca607280bc Mon Sep 17 00:00:00 2001 >> From: Lukas Gradl >> Date: Mon, 30 May 2016 15:46:29 -0500 >> Subject: [PATCH] gnu: serialization: Add msgpack. >>=20 >> * gnu/packages/serialization.scm (msgpack): New variable. >> --- >> gnu/packages/serialization.scm | 31 +++++++++++++++++++++++++++++++ >> 1 file changed, 31 insertions(+) >>=20 >> diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization= .scm >> index 8dfd21d..524754b 100644 >> --- a/gnu/packages/serialization.scm >> +++ b/gnu/packages/serialization.scm >> @@ -1,5 +1,6 @@ >> ;;; GNU Guix --- Functional package management for GNU >> ;;; Copyright =C2=A9 2015 Ricardo Wurmus >> +;;; Copyright =C2=A9 2016 Lukas Gradl >> ;;; >> ;;; This file is part of GNU Guix. >> ;;; >> @@ -21,7 +22,11 @@ >> #:use-module (guix packages) >> #:use-module (guix download) >> #:use-module (guix build-system cmake) >> + #:use-module (guix build-system gnu) >> #:use-module (gnu packages) >> + #:use-module (gnu packages autotools) >> + #:use-module (gnu packages check) >> + #:use-module (gnu packages compression) >> #:use-module (gnu packages documentation)) >>=20=20 >> (define-public cereal >> @@ -72,3 +77,29 @@ >> arbitrary data types and reversibly turns them into different represent= ations, >> such as compact binary encodings, XML, or JSON.") >> (license license:bsd-3))) >> + >> + >> +(define-public msgpack >> + (package >> + (name "msgpack") >> + (version "1.4.1") >> + (source >> + (origin >> + (method url-fetch) >> + (uri >> + (string-append >> + "https://github.com/msgpack/msgpack-c/releases/download/" >> + "cpp-1.4.1/msgpack-" version ".tar.gz")) > ^^^ > "cpp-" version "/msgpack-" Oops! The attached patch fixes that. > >> + (sha256 >> + (base32 >> + "0bpjfh9vz0n2k93mph3x15clmigkgs223xfn8h12ymrh5gsi5ica")))) >> + (build-system gnu-build-system) >> + (native-inputs >> + `(("googletest" ,googletest))) >> + (inputs >> + `(("zlib" ,zlib))) >> + (home-page "http://www.msgpack.org") >> + (synopsis "Binary serialization library") >> + (description "Msgpack is a library for C/C++ that implements binary >> +serialization.") >> + (license license:boost1.0))) >> --=20 >> 2.7.4 >>=20 Thank you! Best, Lukas --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-msgpack.patch Content-Transfer-Encoding: quoted-printable >From e079729d0d2318f218115dfeb046c09a970ba355 Mon Sep 17 00:00:00 2001 From: Lukas Gradl Date: Thu, 2 Jun 2016 19:46:34 -0500 Subject: [PATCH] gnu: Add msgpack. * gnu/packages/serialization.scm (msgpack): New variable. --- gnu/packages/serialization.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 8dfd21d..0f65a00 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2015 Ricardo Wurmus +;;; Copyright =C2=A9 2016 Lukas Gradl ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,7 +22,11 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system cmake) + #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages autotools) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) #:use-module (gnu packages documentation)) =20 (define-public cereal @@ -72,3 +77,29 @@ arbitrary data types and reversibly turns them into different representati= ons, such as compact binary encodings, XML, or JSON.") (license license:bsd-3))) + + +(define-public msgpack + (package + (name "msgpack") + (version "1.4.1") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://github.com/msgpack/msgpack-c/releases/download/" + "cpp-" version "/msgpack-" version ".tar.gz")) + (sha256 + (base32 + "0bpjfh9vz0n2k93mph3x15clmigkgs223xfn8h12ymrh5gsi5ica")))) + (build-system gnu-build-system) + (native-inputs + `(("googletest" ,googletest))) + (inputs + `(("zlib" ,zlib))) + (home-page "http://www.msgpack.org") + (synopsis "Binary serialization library") + (description "Msgpack is a library for C/C++ that implements binary +serialization.") + (license license:boost1.0))) --=20 2.7.4 --=-=-=--