unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH]: Add pixz.
@ 2016-01-24 22:40 Ben Woodcroft
  2016-01-25  8:22 ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Woodcroft @ 2016-01-24 22:40 UTC (permalink / raw)
  To: guix-devel@gnu.org

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

Ta.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-pixz.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-pixz.patch", Size: 2565 bytes --]

From 1546ab1d5f48871a23521f7629aed1493a3dcbf6 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Mon, 25 Jan 2016 08:31:14 +1000
Subject: [PATCH] gnu: Add pixz.

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

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index fd3a9ce..0f27fa9 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2015 Jeff Mickey <j@codemac.net>
 ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32,8 +33,10 @@
   #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
+  #:use-module (gnu packages backup)
   #:use-module (gnu packages base)
   #:use-module (gnu packages perl)
+  #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages valgrind)
   #:use-module ((srfi srfi-1) #:select (last)))
 
@@ -659,3 +662,29 @@ 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)))
+
+(define-public pixz
+  (package
+    (name "pixz")
+    (version "1.0.6")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/vasi/pixz/releases/download/v" version
+                    "/pixz-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1s3j7zw6j5zi3fhdxg287ndr3wf6swac7z21mqd1pyiln530gi82"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("libarchive" ,libarchive)))
+    (home-page "https://github.com/vasi/pixz")
+    (synopsis "Parallel indexing implementation of LZMA")
+    (description
+     "The existing XZ Utils provide great compression in the .xz file format,
+but they produce just one big block of compressed data.  Pixz instead produces
+a collection of smaller blocks which makes random access to the original data
+possible and can compress in parallel.  This is especially useful for large
+tarballs.")
+    (license license:bsd-2)))
-- 
2.6.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH]: Add pixz.
  2016-01-24 22:40 [PATCH]: Add pixz Ben Woodcroft
@ 2016-01-25  8:22 ` Ricardo Wurmus
  2016-01-25  8:47   ` Ben Woodcroft
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2016-01-25  8:22 UTC (permalink / raw)
  To: Ben Woodcroft; +Cc: guix-devel@gnu.org

Looks good to me.  Thank you.

(I also checked the license.  The FreeBSD/BSD-2 license is explicitly
mentioned in the man page, and the text of the license is part of the
repository.  This should be okay, even though the source files
themselves do not have license headers.)

~~ Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]: Add pixz.
  2016-01-25  8:22 ` Ricardo Wurmus
@ 2016-01-25  8:47   ` Ben Woodcroft
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Woodcroft @ 2016-01-25  8:47 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel@gnu.org

On 25/01/16 18:22, Ricardo Wurmus wrote:
> Looks good to me.  Thank you.
Really? That's the first time you've had no comments I think. Excellent, 
and thanks.

Pushed just now.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-25  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-24 22:40 [PATCH]: Add pixz Ben Woodcroft
2016-01-25  8:22 ` Ricardo Wurmus
2016-01-25  8:47   ` Ben Woodcroft

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).