aboutsummaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-11-04 23:40:26 +0100
committerLudovic Courtès <ludo@gnu.org>2012-11-05 00:28:37 +0100
commit6a92093dcdfb13ccfa828e3a2463765bf5be01cd (patch)
tree862c6f8e28640d1dd15a18b4a05c7af2105bb4d7 /distro
parenta268f085db226a5bb5723f857d570fd1a6253403 (diff)
downloadgnu-guix-6a92093dcdfb13ccfa828e3a2463765bf5be01cd.tar
gnu-guix-6a92093dcdfb13ccfa828e3a2463765bf5be01cd.tar.gz
distro: Add zlib.
* distro/packages/compression.scm (zlib): New variable.
Diffstat (limited to 'distro')
-rw-r--r--distro/packages/compression.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/distro/packages/compression.scm b/distro/packages/compression.scm
index c1130a925b..b6f16afdf5 100644
--- a/distro/packages/compression.scm
+++ b/distro/packages/compression.scm
@@ -21,6 +21,46 @@
#:use-module (guix http)
#:use-module (guix build-system gnu))
+(define-public zlib
+ (package
+ (name "zlib")
+ (version "1.2.7")
+ (source
+ (origin
+ (method http-fetch)
+ (uri (string-append "http://zlib.net/zlib-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1i96gsdvxqb6skp9a58bacf1wxamwi9m9pg4yn7cpf7g7239r77s"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases (alist-replace
+ 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Zlib's home-made `configure' doesn't fails when passed
+ ;; extra flags like `--enable-fast-install', so we need to
+ ;; invoke it with just what it understand.
+ (let ((out (assoc-ref outputs "out")))
+ (zero? (system* "./configure"
+ (string-append "--prefix=" out)))))
+ %standard-phases)))
+ (home-page "http://zlib.net/")
+ (synopsis "The zlib compression library")
+ (description
+ "zlib is designed to be a free, general-purpose, legally unencumbered --
+that is, not covered by any patents -- lossless data-compression library for
+use on virtually any computer hardware and operating system. The zlib data
+format is itself portable across platforms. Unlike the LZW compression method
+used in Unix compress(1) and in the GIF image format, the compression method
+currently used in zlib essentially never expands the data. (LZW can double or
+triple the file size in extreme cases.) zlib's memory footprint is also
+independent of the input data and can be reduced, if necessary, at some cost
+in compression.")
+
+ ;; See <http://zlib.net/zlib_license.html>.
+ (license "permissive")))
+
(define-public gzip
(package
(name "gzip")