From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH 06/24] gnu: xml: Add jsoncpp. Date: Tue, 16 Aug 2016 23:00:30 +0300 Message-ID: <87vaz0iiw1.fsf@gmail.com> References: <20160816183938.22794-1-david@craven.ch> <20160816183938.22794-6-david@craven.ch> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZkXN-0002XM-4h for guix-devel@gnu.org; Tue, 16 Aug 2016 16:00:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZkXH-000057-PU for guix-devel@gnu.org; Tue, 16 Aug 2016 16:00:37 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:34684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZkXH-00004y-Ix for guix-devel@gnu.org; Tue, 16 Aug 2016 16:00:31 -0400 Received: by mail-wm0-x244.google.com with SMTP id q128so18189392wma.1 for ; Tue, 16 Aug 2016 13:00:31 -0700 (PDT) In-Reply-To: <20160816183938.22794-6-david@craven.ch> (David Craven's message of "Tue, 16 Aug 2016 20:39:20 +0200") 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: David Craven Cc: guix-devel@gnu.org David Craven (2016-08-16 21:39 +0300) wrote: > * gnu/packages/xml.scm (jsoncpp): New variable. > --- > gnu/packages/xml.scm | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > > diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm > index 660a0b9..72403c2 100644 > --- a/gnu/packages/xml.scm > +++ b/gnu/packages/xml.scm > @@ -832,3 +832,22 @@ files. It is designed to be fast and to handle large input files.") > (synopsis "YAML parser and emitter in C++ matching the YAML 1.2 spec") > (description "YAML parser and emitter in C++ matching the YAML 1.2 spec.") > (license license:bsd-3))) > + > +(define-public jsoncpp > + (package > + (name "jsoncpp") > + (version "1.7.4") > + (source (origin > + (method url-fetch) > + (uri (string-append > + "https://github.com/open-source-parsers/jsoncpp/archive/" > + version ".tar.gz")) Indentation of 'string-append', please :-) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "0sgp6nc4c6pfn92f369v08zdwpqswn9j2ihy59bpwwl0grkx1p0h")))) > + (build-system cmake-build-system) > + (home-page "https://github.com/open-source-parsers/jsoncpp") > + (synopsis "C++ library for interacting with JSON") > + (description "C++ library for interacting with JSON.") Maybe expand a bit (taken from the project README): "JsonCpp is a C++ library that allows manipulating JSON values, including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files." > + (license license:expat))) -- Alex