From: Leo Famulari <leo@famulari.name>
To: guix-devel@gnu.org
Subject: [PATCH 1/1] gnu: Add lz4.
Date: Wed, 9 Sep 2015 17:04:12 -0400 [thread overview]
Message-ID: <945307c3bec383b9c98180dc832ecb47c3d0791d.1441832565.git.leo@famulari.name> (raw)
In-Reply-To: <cover.1441832565.git.leo@famulari.name>
In-Reply-To: <cover.1441832565.git.leo@famulari.name>
* gnu/packages/compression.scm (lz4): New variable.
---
gnu/packages/compression.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 287ae25..e96518c 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -30,6 +31,7 @@
#:use-module (guix build-system perl)
#:use-module (gnu packages base)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages valgrind)
#:use-module ((srfi srfi-1) #:select (last)))
(define-public zlib
@@ -513,3 +515,34 @@ compression library.")
(description "IO-Compress provides a Perl interface to allow reading and
writing of compressed data created with the zlib and bzip2 libraries.")
(license (package-license perl))))
+
+(define-public lz4
+ (package
+ (name "lz4")
+ (version "r131")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/Cyan4973/lz4/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32 "1vfg305zvj50hwscad24wan9jar6nqj14gdk2hqyr7bb9mhh0kcx"))))
+ (build-system gnu-build-system)
+ (native-inputs `(("valgrind" ,valgrind)))
+ (arguments
+ `(#:test-target "test"
+ #:parallel-tests? #f ; tests fail if run in parallel
+ #:make-flags (list "CC=gcc"
+ (string-append "PREFIX=" (assoc-ref %outputs "out")))
+ #:phases (modify-phases %standard-phases
+ (delete 'configure))))
+ (home-page "https://github.com/Cyan4973/lz4")
+ (synopsis "Compression algorithm focused on speed")
+ (description "LZ4 is a lossless compression algorithm, providing
+compression speed at 400 MB/s per core (0.16 Bytes/cycle). It also features an
+extremely fast decoder, with speed in multiple GB/s per core (0.71 Bytes/cycle).
+A high compression derivative, called LZ4_HC, is also provided. It trades CPU
+time for compression ratio.")
+ ;; The libraries (lz4, lz4hc, and xxhash are BSD licenced. The command
+ ;; line interface programs (lz4, fullbench, fuzzer, datagen) are GPL2+.
+ (license (list license:bsd-2 license:gpl2+))))
--
2.4.3
next prev parent reply other threads:[~2015-09-09 21:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-09 21:04 [PATCH 0/1] Add lz4 (C implementation) Leo Famulari
2015-09-09 21:04 ` Leo Famulari [this message]
2015-09-09 21:26 ` Taylan Ulrich Bayırlı/Kammer
2015-09-09 22:16 ` Leo Famulari
2015-09-13 10:10 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=945307c3bec383b9c98180dc832ecb47c3d0791d.1441832565.git.leo@famulari.name \
--to=leo@famulari.name \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.