guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29714] [PATCH 3/4] gnu: Add lzlib.


From: Tobias Geerinckx-Rice
Subject: [bug#29714] [PATCH 3/4] gnu: Add lzlib.
Date: Thu, 14 Dec 2017 22:37:23 +0100

* gnu/packages/compression.scm (lzlib): New public variable.
---
 gnu/packages/compression.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index f4c90c25c..42af4cd51 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1989,3 +1989,31 @@ it well-suited to embedded and other systems without a 
C++ compiler, or for use
 in other applications like package managers.
 Clzip is intended to be fully compatible with the regular lzip package.")
     (license license:gpl2+)))
+
+(define-public lzlib
+  (package
+    (name "lzlib")
+    (version "1.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://download.savannah.gnu.org/releases/lzip/";
+                           name "/" name "-" version ".tar.gz"))
+       (sha256
+        (base32 "13mssf3hrcnmd4ijbqnxfk0zgj1q5lvpxxkm1hmrbl1h73czhwi4"))))
+    (build-system gnu-build-system)
+    ;; The included minilzip binary is only ~16 smaller than the ‘real’ lzip.
+    ;; It's used during the test suite, but don't be tempted to install it.
+    (arguments
+     `(#:configure-flags
+       (list "CC=gcc"
+             "--enable-shared")))       ; only static (.a) is built by default
+    (home-page "http://www.nongnu.org/lzip/lzlib.html";)
+    (synopsis "Lzip data compression C library")
+    (description
+     "Lzlib is a C library for in-memory LZMA compression and decompression in
+the lzip format.  It supports integrity checking of the decompressed data, and
+all functions are thread-safe.  The library should never crash, even in case of
+corrupted input.")
+    (license (list license:bsd-2        ; the library itself
+                   license:gpl2+))))    ; main.c (i.e. minilzip, used by tests)
-- 
2.15.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]