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 © 2016 Ben Woodcroft <donttrust...@gmail.com> > ;;; Copyright © 2016 Danny Milosavljevic <dan...@scratchpost.org> > ;;; Copyright © 2016 Tobias Geerinckx-Rice <m...@tobias.gr> > +;;; Copyright © 2016 David Craven <da...@craven.ch> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -871,3 +872,38 @@ even LZMA can provide, or a higher speed than gzip while > 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: <https://github.com/google/snappy/releases/download/1.1.3/snappy-1.1.3.tar.gz> 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 > instance, > +compared to the fastest mode of zlib, Snappy is an order of magnitude faster > +for most inputs, but the resulting compressed files are anywhere from 20% to > +100% bigger.") > + (license license:asl2.0))) -- Alex