[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/24] gnu: compression: Add snappy.
From: |
David Craven |
Subject: |
[PATCH 07/24] gnu: compression: Add snappy. |
Date: |
Tue, 16 Aug 2016 20:39:21 +0200 |
* 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 <address@hidden>
;;; Copyright © 2016 Danny Milosavljevic <address@hidden>
;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2016 David Craven <address@hidden>
;;;
;;; 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")
+ (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)))
--
2.9.0
- [PATCH 01/24] gnu: qt: Add qtquickcontrols., David Craven, 2016/08/16
- [PATCH 05/24] gnu: xml: Add yaml-cpp., David Craven, 2016/08/16
- [PATCH 04/24] gnu: databases: Add lmdb., David Craven, 2016/08/16
- [PATCH 06/24] gnu: xml: Add jsoncpp., David Craven, 2016/08/16
- [PATCH 02/24] gnu: qt: Add qtquickcontrols2., David Craven, 2016/08/16
- [PATCH 07/24] gnu: compression: Add snappy.,
David Craven <=
- [PATCH 03/24] gnu: qt: Add qtgraphicaleffects., David Craven, 2016/08/16
- [PATCH 08/24] gnu: xorg: Add lndir., David Craven, 2016/08/16
- [PATCH 15/24] gnu: gstreamer: Symlink gstconfig.h into include directory., David Craven, 2016/08/16