aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJeff Mickey <jm@igneous.io>2015-09-28 14:55:56 -0700
committerLudovic Courtès <ludo@gnu.org>2015-09-29 23:40:10 +0200
commit820dc3f5f15709d1c6d21b64d6af440534442b4b (patch)
treedea0d335127fddf2380160f019f40c4d39cd2bf4 /gnu
parent0b1f0d36b1219710d6e9e1cd15fbabe729d374e0 (diff)
downloadgnu-guix-820dc3f5f15709d1c6d21b64d6af440534442b4b.tar
gnu-guix-820dc3f5f15709d1c6d21b64d6af440534442b4b.tar.gz
gnu: Add pigz.
* gnu/packages/compression.scm (pigz): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/compression.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index fbe5ba484e..941844b870 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2015 Jeff Mickey <j@codemac.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -586,3 +587,41 @@ It is intended to be used for archival use, for live CDs, and for embedded
systems where low overhead is needed. This package allows you to create and
extract such filesystems.")
(license license:gpl2+)))
+
+(define-public pigz
+ (package
+ (name "pigz")
+ (version "2.3.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://zlib.net/pigz/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "172hdf26k4zmm7z8md7nl0dph2a7mhf3x7slb9bhfyff6as6g2sf"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (man (string-append out "/share/man/man1")))
+ (install-file "pigz" bin)
+ (symlink "pigz" (string-append bin "/unpigz"))
+ (install-file "pigz.1" man)
+ #t))))
+ #:make-flags (list "CC=gcc")
+ #:test-target "tests"))
+ (inputs `(("zlib" ,zlib)))
+ (home-page "http://zlib.net/pigz/")
+ (synopsis "Parallel implementation of gzip")
+ (description
+ "This package provides a parallel implementation of gzip that exploits
+multiple processors and multiple cores when compressing data.")
+
+ ;; Things under zopfli/ are under ASL2.0, but 4 files at the top-level,
+ ;; written by Mark Adler, are under another non-copyleft license.
+ (license license:asl2.0)))