all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jeff Mickey <jm@igneous.io>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: compression: Add pigz
Date: Mon, 28 Sep 2015 14:55:56 -0700	[thread overview]
Message-ID: <871tditdhv.fsf@codemac.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 86 bytes --]

Hi folks,

This patch adds the parallel gzip implementation for guix.

  //  codemac


[-- Attachment #2: 0001-gnu-Add-pigz.patch --]
[-- Type: text/x-patch, Size: 2792 bytes --]

From 0eadbc2557621939b29bd4cfbb562bc396871ec8 Mon Sep 17 00:00:00 2001
From: Jeff Mickey <j@codemac.net>
Date: Mon, 28 Sep 2015 14:53:28 -0700
Subject: [PATCH] gnu: Add pigz

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

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index fbe5ba4..66b8726 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,43 @@ 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")))
+                      (mkdir-p bin)
+                      (copy-file "pigz" (string-append bin "/pigz"))
+                      (symlink
+                       (string-append bin "/pigz")
+                       (string-append bin  "/unpigz"))
+                      (mkdir-p man)
+                      (copy-file "pigz.1" (string-append man "/pigz.1")))
+                    #t)))
+       #:make-flags (list "CC=gcc")
+       #:test-target "tests"))
+    (inputs `(("zlib" ,zlib)))
+    (home-page "http://zlib.net/pigz/")
+    (synopsis "Parallel implementation of gzip for multi-processor,
+multi-core machines")
+    (description "A parallel implementation of gzip that is a fully functional
+replacement for gzip that exploits multiple processors and multiple cores when
+compressing data. pigz was written by Mark Adler, and uses the zlib and
+pthread libraries.")
+    (license license:bsd-3)))
-- 
2.5.0


             reply	other threads:[~2015-09-28 21:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28 21:55 Jeff Mickey [this message]
2015-09-29 21:42 ` [PATCH] gnu: compression: Add pigz Ludovic Courtès
2015-09-29 21:46   ` Jeff Mickey

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=871tditdhv.fsf@codemac.net \
    --to=jm@igneous.io \
    --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.