summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-09-06 14:40:12 +0200
committerRicardo Wurmus <rekado@elephly.net>2021-09-06 14:48:23 +0200
commitf9e5d04fc2023d5e7fdffa0a5349c4f73704f054 (patch)
tree7652e233dd1d4ec77b980b91e2fdd8d24c0c2adf
parent9e836ca8fcf97c4ed3aa41db6ed2fd47a142009a (diff)
gnu: Add libdeflate.
* gnu/packages/compression.scm (libdeflate): New variable.
-rw-r--r--gnu/packages/compression.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index ecc767a3bf..cfbc959182 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -2651,6 +2651,42 @@ with their error correction data losslessly rearranged for better compression,
to their original, binary CD format.")
(license license:gpl3+)))
+(define-public libdeflate
+ (package
+ (name "libdeflate")
+ (version "1.8")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ebiggers/libdeflate")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nw1zhr2s6ffcc3s0n5wsshvjb6pmybwapagli135zzn2fx1pdiz"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:make-flags
+ (list (string-append "CC=" ,(cc-for-target))
+ (string-append "PREFIX=" (assoc-ref %outputs "out")))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (inputs
+ `(("zlib" ,zlib)))
+ (home-page "https://github.com/ebiggers/libdeflate")
+ (synopsis "Library for DEFLATE/zlib/gzip compression and decompression")
+ (description "Libdeflate is a library for fast, whole-buffer DEFLATE-based
+compression and decompression. The supported formats are:
+
+@enumerate
+@item DEFLATE (raw)
+@item zlib (a.k.a. DEFLATE with a zlib wrapper)
+@item gzip (a.k.a. DEFLATE with a gzip wrapper)
+@end enumerate
+")
+ (license license:expat)))
+
(define-public tarlz
(package
(name "tarlz")