From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH 07/24] gnu: compression: Add snappy. Date: Tue, 16 Aug 2016 22:45:30 +0300 Message-ID: <878tvwjy5h.fsf@gmail.com> References: <20160816183938.22794-1-david@craven.ch> <20160816183938.22794-7-david@craven.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZkIr-0006jF-1C for guix-devel@gnu.org; Tue, 16 Aug 2016 15:45:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZkIm-0003mr-UN for guix-devel@gnu.org; Tue, 16 Aug 2016 15:45:36 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:36368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZkIm-0003mb-Ma for guix-devel@gnu.org; Tue, 16 Aug 2016 15:45:32 -0400 Received: by mail-wm0-x241.google.com with SMTP id i138so18058489wmf.3 for ; Tue, 16 Aug 2016 12:45:32 -0700 (PDT) In-Reply-To: <20160816183938.22794-7-david@craven.ch> (David Craven's message of "Tue, 16 Aug 2016 20:39:21 +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/compression.scm (snappy): New variable. > --- > gnu/packages/compression.scm | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > > diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm > index e63c1af..cd1866b 100644 > --- a/gnu/packages/compression.scm > +++ b/gnu/packages/compression.scm > @@ -11,6 +11,7 @@ > ;;; Copyright =C2=A9 2016 Ben Woodcroft > ;;; Copyright =C2=A9 2016 Danny Milosavljevic > ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice > +;;; Copyright =C2=A9 2016 David Craven > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -871,3 +872,38 @@ even LZMA can provide, or a higher speed than gzip w= hile compressing as > well as bzip2.") > (license (list license:gpl3+ > license:public-domain)))) ; most files in lzma/ > + > +(define-public snappy > + (package > + (name "snappy") > + (version "1.1.3") > + (source (origin > + (method url-fetch) > + (uri (string-append > + "https://github.com/google/snappy/archive/" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "04lc9n1fr4kak8yd68v61w561zcbykfyj9f745smva8hcn0hyk7r"))= )) > + (build-system gnu-build-system) > + (native-inputs > + `(("autoconf" ,autoconf) > + ("automake" ,automake) > + ("libtool" ,libtool) > + ("pkg-config" ,pkg-config))) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'autoconf > + (lambda _ > + (zero? (system* "autoreconf" "-vfi"))))))) > + (home-page "https://github.com/open-source-parsers/jsoncpp") I think you meant "https://github.com/google/snappy" Also there is a real release that shouldn't require autoreconf phase: Did you try using it? > + (synopsis "Fast compressor/decompressor") > + (description "Snappy is a compression/decompression library. It does= not > +aim for maximum compression, or compatibility with any other compression= library; > +instead, it aims for very high speeds and reasonable compression. For in= stance, > +compared to the fastest mode of zlib, Snappy is an order of magnitude fa= ster > +for most inputs, but the resulting compressed files are anywhere from 20= % to > +100% bigger.") > + (license license:asl2.0))) --=20 Alex