Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
31dcc272 | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2017, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
b357faac | 3 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> |
144cc3c4 | 4 | ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org> |
27f76fe6 | 5 | ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> |
69d9792a | 6 | ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org> |
9a2fcb63 | 7 | ;;; Copyright © 2015, 2016, 2017, 2018, 2020 Ricardo Wurmus <rekado@elephly.net> |
77737e03 | 8 | ;;; Copyright © 2015, 2017, 2018 Leo Famulari <leo@famulari.name> |
820dc3f5 | 9 | ;;; Copyright © 2015 Jeff Mickey <j@codemac.net> |
d84ddbb9 | 10 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il> |
23f3cbb8 | 11 | ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com> |
3fd4b90d | 12 | ;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org> |
f38eabe9 | 13 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
e4c2136d | 14 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
3480ceb1 | 15 | ;;; Copyright © 2016, 2019, 2020 Kei Kebreau <kkebreau@posteo.net> |
8e98f750 | 16 | ;;; Copyright © 2016, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com> |
3c986a7d | 17 | ;;; Copyright © 2017 Nikita <nikita@n0.is> |
9e6ada8f | 18 | ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com> |
d109b1e8 | 19 | ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org> |
ef5c40aa | 20 | ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at> |
b44ecca6 | 21 | ;;; Copyright © 2017 Petter <petter@mykolab.ch> |
9869bb12 | 22 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
e294c05e | 23 | ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com> |
2ed0ef2f | 24 | ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com> |
8ff5c735 | 25 | ;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz> |
09debcf5 | 26 | ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
9720104c | 27 | ;;; Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> |
1ac624cd | 28 | ;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de> |
d2b237d0 | 29 | ;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net> |
910bf1f7 | 30 | ;;; Copyright © 2020 Lars-Dominik Braun <lars@6xq.net> |
ff43f128 | 31 | ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net> |
a268f085 | 32 | ;;; |
233e7676 | 33 | ;;; This file is part of GNU Guix. |
a268f085 | 34 | ;;; |
233e7676 | 35 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
a268f085 LC |
36 | ;;; under the terms of the GNU General Public License as published by |
37 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
38 | ;;; your option) any later version. | |
39 | ;;; | |
233e7676 | 40 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
a268f085 LC |
41 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
42 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
43 | ;;; GNU General Public License for more details. | |
44 | ;;; | |
45 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 46 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
a268f085 | 47 | |
1ffa7090 | 48 | (define-module (gnu packages compression) |
b5b73a82 | 49 | #:use-module ((guix licenses) #:prefix license:) |
21b2ec4d | 50 | #:use-module (guix utils) |
a268f085 | 51 | #:use-module (guix packages) |
87f5d366 | 52 | #:use-module (guix download) |
646898b3 | 53 | #:use-module (guix git-download) |
9e6ada8f | 54 | #:use-module (guix build-system cmake) |
0745e28d | 55 | #:use-module (guix build-system glib-or-gtk) |
b357faac | 56 | #:use-module (guix build-system gnu) |
910bf1f7 | 57 | #:use-module (guix build-system go) |
d2b237d0 | 58 | #:use-module (guix build-system python) |
8ff5c735 | 59 | #:use-module (guix build-system trivial) |
e99dd67a | 60 | #:use-module (gnu packages) |
389eb3fa | 61 | #:use-module (gnu packages assembly) |
69d9792a | 62 | #:use-module (gnu packages autotools) |
23f3cbb8 | 63 | #:use-module (gnu packages backup) |
73f542c3 | 64 | #:use-module (gnu packages base) |
e294c05e | 65 | #:use-module (gnu packages boost) |
0f03c531 | 66 | #:use-module (gnu packages check) |
9e6ada8f | 67 | #:use-module (gnu packages curl) |
09debcf5 | 68 | #:use-module (gnu packages documentation) |
ef5c40aa | 69 | #:use-module (gnu packages file) |
0745e28d RG |
70 | #:use-module (gnu packages gettext) |
71 | #:use-module (gnu packages glib) | |
72 | #:use-module (gnu packages gnome) | |
73 | #:use-module (gnu packages gtk) | |
9869bb12 | 74 | #:use-module (gnu packages maths) |
646898b3 | 75 | #:use-module (gnu packages perl) |
23f3cbb8 | 76 | #:use-module (gnu packages pkg-config) |
1ae60db8 | 77 | #:use-module (gnu packages python) |
09debcf5 | 78 | #:use-module (gnu packages qt) |
9e6ada8f | 79 | #:use-module (gnu packages tls) |
82aa2a28 | 80 | #:use-module (gnu packages valgrind) |
0745e28d | 81 | #:use-module (gnu packages xml) |
36df995c | 82 | #:use-module (ice-9 match) |
646898b3 | 83 | #:use-module ((srfi srfi-1) #:select (last))) |
a268f085 | 84 | |
6a92093d LC |
85 | (define-public zlib |
86 | (package | |
87 | (name "zlib") | |
2b8bea03 | 88 | (version "1.2.11") |
6a92093d LC |
89 | (source |
90 | (origin | |
87f5d366 | 91 | (method url-fetch) |
a67f97fe CR |
92 | (uri (list (string-append "http://zlib.net/zlib-" |
93 | version ".tar.gz") | |
b2859a4f LC |
94 | (string-append "mirror://sourceforge/libpng/zlib/" |
95 | version "/zlib-" version ".tar.gz"))) | |
6a92093d LC |
96 | (sha256 |
97 | (base32 | |
2b8bea03 | 98 | "18dighcs333gsvajvvgqp8l4cx7h1x7yx9gd5xacnk80spyykrf3")))) |
6a92093d | 99 | (build-system gnu-build-system) |
b90289da | 100 | (outputs '("out" "static")) |
6a92093d | 101 | (arguments |
6cd00453 EF |
102 | `(#:phases |
103 | (modify-phases %standard-phases | |
104 | (replace 'configure | |
105 | (lambda* (#:key outputs #:allow-other-keys) | |
106 | ;; Zlib's home-made `configure' fails when passed | |
107 | ;; extra flags like `--enable-fast-install', so we need to | |
108 | ;; invoke it with just what it understand. | |
109 | (let ((out (assoc-ref outputs "out"))) | |
110 | ;; 'configure' doesn't understand '--host'. | |
111 | ,@(if (%current-target-system) | |
112 | `((setenv "CHOST" ,(%current-target-system))) | |
113 | '()) | |
144cc3c4 | 114 | (invoke "./configure" |
b90289da MB |
115 | (string-append "--prefix=" out))))) |
116 | (add-after 'install 'move-static-library | |
117 | (lambda* (#:key outputs #:allow-other-keys) | |
118 | (let ((out (assoc-ref outputs "out")) | |
119 | (static (assoc-ref outputs "static"))) | |
120 | (with-directory-excursion (string-append out "/lib") | |
121 | (install-file "libz.a" (string-append static "/lib")) | |
122 | (delete-file "libz.a") | |
123 | #t))))))) | |
7f1773ea | 124 | (home-page "https://zlib.net/") |
35b9e423 | 125 | (synopsis "Compression library") |
6a92093d LC |
126 | (description |
127 | "zlib is designed to be a free, general-purpose, legally unencumbered -- | |
128 | that is, not covered by any patents -- lossless data-compression library for | |
129 | use on virtually any computer hardware and operating system. The zlib data | |
35b9e423 | 130 | format is itself portable across platforms. Unlike the LZW compression method |
6a92093d LC |
131 | used in Unix compress(1) and in the GIF image format, the compression method |
132 | currently used in zlib essentially never expands the data. (LZW can double or | |
133 | triple the file size in extreme cases.) zlib's memory footprint is also | |
134 | independent of the input data and can be reduced, if necessary, at some cost | |
135 | in compression.") | |
4a44e743 | 136 | (license license:zlib))) |
6a92093d | 137 | |
8298df96 MB |
138 | (define-public minizip |
139 | (package | |
140 | (name "minizip") | |
141 | (version (package-version zlib)) | |
142 | (source (package-source zlib)) | |
143 | (build-system gnu-build-system) | |
144 | (arguments | |
145 | `(#:phases | |
146 | (modify-phases %standard-phases | |
147 | (add-after 'unpack 'enter-source | |
c11ac62d LC |
148 | (lambda _ (chdir "contrib/minizip") #t)) |
149 | (add-after 'install 'remove-crypt-h | |
150 | (lambda* (#:key outputs #:allow-other-keys) | |
151 | ;; Remove <minizip/crypt.h> because it interferes with libc's | |
152 | ;; <crypt.h> given that 'minizip.pc' says "-I…/include/minizip". | |
153 | ;; Fedora does the same: | |
154 | ;; <https://src.fedoraproject.org/rpms/zlib/c/4d2785ec3116947872f6f32dc4104e6d36d8a7a4?branch=master>. | |
155 | (let ((out (assoc-ref outputs "out"))) | |
156 | (delete-file (string-append out "/include/minizip/crypt.h")) | |
157 | #t)))))) | |
8298df96 MB |
158 | (native-inputs |
159 | `(("autoconf" ,autoconf) | |
160 | ("automake" ,automake) | |
161 | ("libtool" ,libtool))) | |
162 | (propagated-inputs `(("zlib" ,zlib))) | |
163 | (home-page (package-home-page zlib)) | |
164 | (synopsis "Zip Compression library") | |
165 | (description | |
166 | "Minizip is a minimalistic library that supports compressing, | |
167 | extracting and viewing ZIP archives. This version is extracted from | |
168 | the @code{zlib} source.") | |
169 | (license (package-license zlib)))) | |
170 | ||
ee97be9f RW |
171 | (define-public fastjar |
172 | (package | |
173 | (name "fastjar") | |
174 | (version "0.98") | |
175 | (source (origin | |
176 | (method url-fetch) | |
177 | (uri (string-append "mirror://savannah/fastjar/fastjar-" | |
178 | version ".tar.gz")) | |
179 | (sha256 | |
180 | (base32 | |
181 | "0iginbz2m15hcsa3x4y7v3mhk54gr1r7m3ghx0pg4n46vv2snmpi")))) | |
182 | (build-system gnu-build-system) | |
183 | (inputs `(("zlib" ,zlib))) | |
340978d7 | 184 | (home-page "https://savannah.nongnu.org/projects/fastjar") |
ee97be9f RW |
185 | (synopsis "Replacement for Sun's 'jar' utility") |
186 | (description | |
36a4366d EF |
187 | "FastJar is an attempt to create a much faster replacement for Sun's |
188 | @code{jar} utility. Instead of being written in Java, FastJar is written in C.") | |
ee97be9f RW |
189 | (license license:gpl2+))) |
190 | ||
58593975 RW |
191 | (define-public libtar |
192 | (package | |
193 | (name "libtar") | |
89d80159 | 194 | (version "1.2.20") |
58593975 RW |
195 | (source (origin |
196 | (method url-fetch) | |
89d80159 EF |
197 | (uri (list |
198 | (string-append | |
199 | "ftp://ftp.feep.net/pub/software/libtar/libtar-" | |
200 | version ".tar.gz") | |
201 | (string-append | |
202 | "mirror://debian/pool/main/libt/libtar/libtar_" | |
203 | version ".orig.tar.gz"))) | |
58593975 RW |
204 | (sha256 |
205 | (base32 | |
e99dd67a EF |
206 | "02cihzl77ia0dcz7z2cga2412vyhhs5pa2355q4wpwbyga2lrwjh")) |
207 | (patches (search-patches "libtar-CVE-2013-4420.patch")))) | |
58593975 | 208 | (build-system gnu-build-system) |
112fcafb | 209 | (arguments `(#:tests? #f)) ; no "check" target |
89d80159 EF |
210 | (native-inputs |
211 | `(("autoconf" ,autoconf) | |
212 | ("automake" ,automake) | |
213 | ("libtool" ,libtool))) | |
214 | (inputs | |
215 | `(("zlib" ,zlib))) | |
58593975 RW |
216 | (synopsis "C library for manipulating POSIX tar files") |
217 | (description | |
218 | "libtar is a C library for manipulating POSIX tar files. It handles | |
219 | adding and extracting files to/from a tar archive.") | |
89d80159 | 220 | (home-page "https://repo.or.cz/libtar.git") |
58593975 RW |
221 | (license license:bsd-3))) |
222 | ||
a268f085 LC |
223 | (define-public gzip |
224 | (package | |
225 | (name "gzip") | |
07c95566 | 226 | (version "1.10") |
a268f085 | 227 | (source (origin |
87f5d366 | 228 | (method url-fetch) |
0db342a5 | 229 | (uri (string-append "mirror://gnu/gzip/gzip-" |
28181faf | 230 | version ".tar.xz")) |
a268f085 LC |
231 | (sha256 |
232 | (base32 | |
07c95566 | 233 | "1h6p374d3j8d4cdfydzls021xa2yby8myc0h8d6m8bc7k6ncq9c4")))) |
a268f085 | 234 | (build-system gnu-build-system) |
f50d2669 | 235 | (synopsis "General file (de)compression (using lzw)") |
a268f085 LC |
236 | (arguments |
237 | ;; FIXME: The test suite wants `less', and optionally Perl. | |
48623f5b RW |
238 | '(#:tests? #f |
239 | #:phases | |
240 | (modify-phases %standard-phases | |
c7b87eed MB |
241 | (add-after 'unpack 'patch-for-glibc-2.28 |
242 | (lambda _ | |
243 | ;; Adjust the bundled gnulib to work with glibc 2.28. See e.g. | |
244 | ;; "m4-gnulib-libio.patch". This is a phase rather than patch | |
245 | ;; or snippet to work around <https://bugs.gnu.org/32347>. | |
246 | (substitute* (find-files "lib" "\\.c$") | |
247 | (("#if defined _IO_ftrylockfile") | |
248 | "#if defined _IO_EOF_SEEN")) | |
249 | (substitute* "lib/stdio-impl.h" | |
250 | (("^/\\* BSD stdio derived implementations") | |
251 | (string-append "#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN\n" | |
252 | "# define _IO_IN_BACKUP 0x100\n" | |
253 | "#endif\n\n" | |
254 | "/* BSD stdio derived implementations"))) | |
255 | #t)) | |
48623f5b RW |
256 | (add-after 'unpack 'use-absolute-name-of-gzip |
257 | (lambda* (#:key outputs #:allow-other-keys) | |
258 | (substitute* "gunzip.in" | |
259 | (("exec gzip") | |
260 | (string-append "exec " (assoc-ref outputs "out") | |
261 | "/bin/gzip"))) | |
262 | #t))))) | |
a268f085 | 263 | (description |
79c311b8 LC |
264 | "GNU Gzip provides data compression and decompression utilities; the |
265 | typical extension is \".gz\". Unlike the \"zip\" format, it compresses a single | |
266 | file; as a result, it is often used in conjunction with \"tar\", resulting in | |
267 | \".tar.gz\" or \".tgz\", etc.") | |
4a44e743 | 268 | (license license:gpl3+) |
6fd52309 | 269 | (home-page "https://www.gnu.org/software/gzip/"))) |
a268f085 LC |
270 | |
271 | (define-public bzip2 | |
03bc86b8 CB |
272 | (package |
273 | (name "bzip2") | |
b9a3654e | 274 | (version "1.0.8") |
03bc86b8 CB |
275 | (source (origin |
276 | (method url-fetch) | |
b9a3654e MB |
277 | (uri (string-append "https://sourceware.org/pub/bzip2/bzip2-" |
278 | version ".tar.gz")) | |
03bc86b8 CB |
279 | (sha256 |
280 | (base32 | |
b9a3654e | 281 | "0s92986cv0p692icqlw1j42y9nld8zd83qwhzbqd61p1dqbh6nmb")))) |
03bc86b8 CB |
282 | (build-system gnu-build-system) |
283 | (arguments | |
284 | `(#:modules ((guix build gnu-build-system) | |
285 | (guix build utils) | |
5212c52c | 286 | (ice-9 ftw) |
03bc86b8 CB |
287 | (srfi srfi-1)) |
288 | #:phases | |
289 | (modify-phases %standard-phases | |
8e98f750 MB |
290 | (add-after 'set-paths 'hide-input-bzip2 |
291 | (lambda* (#:key inputs #:allow-other-keys) | |
292 | (let ((bzip2 (assoc-ref inputs "bzip2"))) | |
293 | (if bzip2 | |
294 | ;; Prevent the build system from retaining a reference to | |
295 | ;; BZIP2 from INPUTS. | |
296 | (begin | |
297 | (setenv "LIBRARY_PATH" | |
298 | (string-join (delete (string-append bzip2 "/lib") | |
299 | (string-split (getenv "LIBRARY_PATH") | |
300 | #\:)) | |
301 | ":")) | |
302 | (format #t "environment variable `LIBRARY_PATH' set to `~a'~%" | |
303 | (getenv "LIBRARY_PATH"))) | |
304 | (format #t "no bzip2 found, nothing done~%")) | |
305 | #t))) | |
03bc86b8 CB |
306 | (replace 'configure |
307 | (lambda* (#:key target #:allow-other-keys) | |
3158bc04 MW |
308 | (when ,(%current-target-system) |
309 | ;; Cross-compilation: use the cross tools. | |
310 | (substitute* (find-files "." "Makefile") | |
311 | (("CC=.*$") | |
312 | (string-append "CC = " target "-gcc\n")) | |
313 | (("AR=.*$") | |
314 | (string-append "AR = " target "-ar\n")) | |
315 | (("RANLIB=.*$") | |
316 | (string-append "RANLIB = " target "-ranlib\n")) | |
317 | (("^all:(.*)test" _ prerequisites) | |
318 | ;; Remove 'all' -> 'test' dependency. | |
319 | (string-append "all:" prerequisites "\n")))) | |
320 | #t)) | |
03bc86b8 CB |
321 | (add-before 'build 'build-shared-lib |
322 | (lambda* (#:key inputs #:allow-other-keys) | |
323 | (patch-makefile-SHELL "Makefile-libbz2_so") | |
3158bc04 | 324 | (invoke "make" "-f" "Makefile-libbz2_so"))) |
03bc86b8 CB |
325 | (add-after 'install 'install-shared-lib |
326 | (lambda* (#:key outputs #:allow-other-keys) | |
2b786f67 MB |
327 | ;; The Makefile above does not have an 'install' target, nor does |
328 | ;; it create all the (un)versioned symlinks, so we handle it here. | |
03bc86b8 | 329 | (let* ((out (assoc-ref outputs "out")) |
2b786f67 | 330 | (libdir (string-append out "/lib")) |
5212c52c MB |
331 | (soname "libbz2.so") |
332 | ;; Locate the built library (e.g. "libbz2.so.1.0.6"). | |
333 | (lib (car (scandir "." | |
334 | (lambda (file) | |
335 | (and (string-prefix? soname file) | |
336 | (eq? 'regular | |
337 | (stat:type (lstat file)))))))) | |
338 | (soversion (string-drop lib (+ 1 (string-length soname))))) | |
2b786f67 MB |
339 | (install-file lib libdir) |
340 | (with-directory-excursion libdir | |
341 | ;; Create symlinks libbz2.so.1 -> libbz2.so.1.0, etc. | |
5212c52c | 342 | (let loop ((base soname) |
2b786f67 MB |
343 | (numbers (string-split soversion #\.))) |
344 | (unless (null? numbers) | |
345 | (let ((so-file (string-append base "." (car numbers)))) | |
346 | (symlink so-file base) | |
347 | (loop so-file (cdr numbers)))))) | |
348 | #t))) | |
45719c1d MB |
349 | (add-after 'install-shared-lib 'move-static-lib |
350 | (lambda* (#:key outputs #:allow-other-keys) | |
351 | (let ((out (assoc-ref outputs "out")) | |
352 | (static (assoc-ref outputs "static"))) | |
353 | (with-directory-excursion (string-append out "/lib") | |
354 | (install-file "libbz2.a" (string-append static "/lib")) | |
355 | (delete-file "libbz2.a") | |
356 | #t)))) | |
e7ee50f2 CB |
357 | (add-after 'install-shared-lib 'patch-scripts |
358 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
359 | (let* ((out (assoc-ref outputs "out"))) | |
360 | (substitute* (string-append out "/bin/bzdiff") | |
361 | (("/bin/rm") "rm"))) | |
03bc86b8 | 362 | #t))) |
ab4fab19 | 363 | |
03bc86b8 CB |
364 | #:make-flags (list (string-append "PREFIX=" |
365 | (assoc-ref %outputs "out"))) | |
ab4fab19 | 366 | |
03bc86b8 CB |
367 | ;; Don't attempt to run the tests when cross-compiling. |
368 | ,@(if (%current-target-system) | |
369 | '(#:tests? #f) | |
370 | '()))) | |
45719c1d | 371 | (outputs '("out" "static")) |
03bc86b8 CB |
372 | (synopsis "High-quality data compression program") |
373 | (description | |
374 | "bzip2 is a freely available, patent free (see below), high-quality data | |
a268f085 LC |
375 | compressor. It typically compresses files to within 10% to 15% of the best |
376 | available techniques (the PPM family of statistical compressors), whilst | |
377 | being around twice as fast at compression and six times faster at | |
378 | decompression.") | |
03bc86b8 CB |
379 | (license (license:non-copyleft "file://LICENSE" |
380 | "See LICENSE in the distribution.")) | |
7598b678 | 381 | (home-page "https://web.archive.org/web/20180801004107/http://www.bzip.org/"))) |
a268f085 | 382 | |
669b7b83 | 383 | (define-public lbzip2 |
7bb7bb5c TGR |
384 | ;; The last 2.5 release is 4 years behind the newest commit (from 2018) and |
385 | ;; may create files that can't even be decompressed by newer bzip2 versions. | |
386 | (let ((commit "b6dc48a7b9bfe6b340ed1f6d72133608ad57144b") | |
387 | (revision "0")) | |
388 | (package | |
389 | (name "lbzip2") | |
390 | (version (git-version "2.5" revision commit)) | |
391 | (source | |
392 | (origin | |
393 | (method git-fetch) | |
394 | (uri (git-reference | |
395 | (url "https://github.com/kjn/lbzip2") | |
396 | (commit commit))) | |
397 | (sha256 | |
398 | (base32 "140xp00dmjsr6c3dwb4dwf0pzlgf159igri321inbinsjiclkngy")) | |
399 | (file-name (git-file-name name version)))) | |
400 | (build-system gnu-build-system) | |
401 | (arguments | |
402 | `(#:phases | |
403 | (modify-phases %standard-phases | |
404 | (add-after 'unpack 'unpack-gnulib | |
405 | (lambda* (#:key inputs #:allow-other-keys) | |
406 | (let ((gnulib (assoc-ref inputs "gnulib"))) | |
407 | (copy-recursively gnulib "lib") | |
408 | (setenv "PATH" (string-append "lib:" (getenv "PATH"))) | |
409 | #t))) | |
410 | (delete 'bootstrap) ; gnulib still has unpatched shebangs | |
411 | (add-after 'patch-source-shebangs 'bootstrap | |
412 | (lambda _ | |
413 | (invoke "sh" "build-aux/autogen.sh") | |
414 | #t))))) | |
415 | (native-inputs | |
416 | `(("autoconf" ,autoconf) | |
417 | ("automake" ,automake) | |
418 | ("gnulib" | |
419 | ,(let ((commit "2d431ac35c4943a3655c07ba91870d2323321b43")) | |
420 | (origin | |
421 | (method git-fetch) | |
422 | (uri (git-reference | |
423 | (url "git://git.savannah.gnu.org/gnulib.git") | |
424 | (commit commit))) | |
425 | (sha256 | |
426 | (base32 "1f0xr4w89bqvhzsfcflcagdixidrk41k00k7kpr91w9lazfis4kf")) | |
427 | (file-name (git-file-name "gnulib" commit))))) | |
428 | ("perl" ,perl))) | |
429 | (synopsis "Parallel bzip2 compression utility") | |
430 | (description | |
431 | "lbzip2 is a multi-threaded compression utility with support for the | |
669b7b83 RW |
432 | bzip2 compressed file format. lbzip2 can process standard bz2 files in |
433 | parallel. It uses POSIX threading model (pthreads), which allows it to take | |
434 | full advantage of symmetric multiprocessing (SMP) systems. It has been proven | |
435 | to scale linearly, even to over one hundred processor cores. lbzip2 is fully | |
436 | compatible with bzip2 – both at file format and command line level.") | |
7bb7bb5c TGR |
437 | ;; lbzip2.org now looks fishy. There is no source code to be found. |
438 | ;; Reported upstream: <https://github.com/kjn/lbzip2/issues/26>. | |
439 | (home-page "https://github.com/kjn/lbzip2") | |
440 | (license license:gpl3+)))) | |
669b7b83 | 441 | |
5d47eab0 EF |
442 | (define-public pbzip2 |
443 | (package | |
444 | (name "pbzip2") | |
bf867709 | 445 | (version "1.1.13") |
5d47eab0 EF |
446 | (source (origin |
447 | (method url-fetch) | |
21b2ec4d EF |
448 | (uri (string-append "https://launchpad.net/pbzip2/" |
449 | (version-major+minor version) "/" version | |
450 | "/+download/" name "-" version ".tar.gz")) | |
5d47eab0 EF |
451 | (sha256 |
452 | (base32 | |
bf867709 | 453 | "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg")))) |
5d47eab0 EF |
454 | (build-system gnu-build-system) |
455 | (inputs | |
b3546174 | 456 | `(("bzip2" ,bzip2))) |
5d47eab0 | 457 | (arguments |
bf867709 | 458 | `(#:tests? #f ; no tests |
5d47eab0 | 459 | #:phases (modify-phases %standard-phases |
bf867709 | 460 | (delete 'configure)) ; no configure script |
21b2ec4d | 461 | #:make-flags (list (string-append "PREFIX=" %output)))) |
1ac624cd BH |
462 | (home-page (string-append "https://web.archive.org/web/20180412020219/" |
463 | "http://compression.ca/pbzip2/")) | |
5d47eab0 EF |
464 | (synopsis "Parallel bzip2 implementation") |
465 | (description | |
466 | "Pbzip2 is a parallel implementation of the bzip2 block-sorting file | |
467 | compressor that uses pthreads and achieves near-linear speedup on SMP machines. | |
21b2ec4d | 468 | The output of this version is fully compatible with bzip2 v1.0.2 (i.e. anything |
5d47eab0 EF |
469 | compressed with pbzip2 can be decompressed with bzip2).") |
470 | (license (license:non-copyleft "file://COPYING" | |
21b2ec4d | 471 | "See COPYING in the distribution.")))) |
5d47eab0 | 472 | |
a268f085 LC |
473 | (define-public xz |
474 | (package | |
475 | (name "xz") | |
957aac76 | 476 | (version "5.2.4") |
a268f085 | 477 | (source (origin |
87f5d366 | 478 | (method url-fetch) |
52d76b64 LC |
479 | (uri (list (string-append "http://tukaani.org/xz/xz-" version |
480 | ".tar.gz") | |
481 | (string-append "http://multiprecision.org/guix/xz-" | |
482 | version ".tar.gz"))) | |
a268f085 LC |
483 | (sha256 |
484 | (base32 | |
957aac76 | 485 | "0ibi2zsfaz6l756spjwc5rayf4ckgc9hwmy8qinppcyk4svz64mm")))) |
a268f085 | 486 | (build-system gnu-build-system) |
5b2da2a6 MB |
487 | (arguments |
488 | `(#:phases | |
489 | (modify-phases %standard-phases | |
490 | (add-after 'install 'move-static-lib | |
491 | (lambda* (#:key outputs #:allow-other-keys) | |
492 | (let ((out (assoc-ref outputs "out")) | |
493 | (static (assoc-ref outputs "static"))) | |
494 | (mkdir-p (string-append static "/lib")) | |
495 | (rename-file (string-append out "/lib/liblzma.a") | |
496 | (string-append static "/lib/liblzma.a")) | |
497 | ;; Remove reference to the static library from the .la file | |
498 | ;; so Libtool does the right thing when both the shared and | |
499 | ;; static library is available. | |
500 | (substitute* (string-append out "/lib/liblzma.la") | |
501 | (("^old_library='liblzma.a'") "old_library=''")) | |
502 | #t)))))) | |
503 | (outputs '("out" "static")) | |
35b9e423 | 504 | (synopsis "General-purpose data compression") |
a268f085 LC |
505 | (description |
506 | "XZ Utils is free general-purpose data compression software with high | |
507 | compression ratio. XZ Utils were written for POSIX-like systems, but also | |
508 | work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils. | |
509 | ||
510 | The core of the XZ Utils compression code is based on LZMA SDK, but it has | |
511 | been modified quite a lot to be suitable for XZ Utils. The primary | |
512 | compression algorithm is currently LZMA2, which is used inside the .xz | |
513 | container format. With typical files, XZ Utils create 30 % smaller output | |
514 | than gzip and 15 % smaller output than bzip2.") | |
38bbd61d | 515 | (license (list license:gpl2+ license:lgpl2.1+)) ; bits of both |
58891850 | 516 | (home-page "https://tukaani.org/xz/"))) |
c6eac761 | 517 | |
0dcea35d KK |
518 | (define-public lhasa |
519 | (package | |
520 | (name "lhasa") | |
521 | (version "0.3.1") | |
522 | (source (origin | |
523 | (method url-fetch) | |
524 | (uri (string-append | |
525 | "https://github.com/fragglet/lhasa/releases/download/v" | |
526 | version "/lhasa-" version ".tar.gz")) | |
527 | (sha256 | |
528 | (base32 | |
529 | "092zi9av18ma20c6h9448k0bapvx2plnp292741dvfd9hmgqxc1z")))) | |
530 | (build-system gnu-build-system) | |
531 | (arguments | |
532 | '(#:phases | |
533 | (modify-phases %standard-phases | |
534 | (add-before 'check 'set-up-test-environment | |
535 | (lambda* (#:key inputs #:allow-other-keys) | |
536 | (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata") | |
537 | "/share/zoneinfo")) | |
538 | #t))))) | |
539 | (native-inputs | |
5a8ef3c1 | 540 | `(("tzdata" ,tzdata-for-tests))) |
0dcea35d KK |
541 | (home-page "https://fragglet.github.com/lhasa/") |
542 | (synopsis "LHA archive decompressor") | |
543 | (description "Lhasa is a replacement for the Unix LHA tool, for | |
544 | decompressing .lzh (LHA / LHarc) and .lzs (LArc) archives. The backend for the | |
545 | tool is a library, so that it can be reused for other purposes. Lhasa aims to | |
546 | be compatible with as many types of lzh/lzs archives as possible. It also aims | |
547 | to generate the same output as the (non-free) Unix LHA tool, so that it will | |
548 | act as a free drop-in replacement.") | |
549 | (license license:isc))) | |
550 | ||
c6eac761 LC |
551 | (define-public lzo |
552 | (package | |
553 | (name "lzo") | |
7276eca4 | 554 | (version "2.10") |
c6eac761 LC |
555 | (source |
556 | (origin | |
557 | (method url-fetch) | |
558 | (uri (string-append "http://www.oberhumer.com/opensource/lzo/download/lzo-" | |
559 | version ".tar.gz")) | |
560 | (sha256 | |
561 | (base32 | |
7276eca4 | 562 | "0wm04519pd3g8hqpjqhfr72q8qmbiwqaxcs3cndny9h86aa95y60")))) |
c6eac761 | 563 | (build-system gnu-build-system) |
165fd9d5 | 564 | (arguments '(#:configure-flags '("--enable-shared"))) |
c6eac761 LC |
565 | (home-page "http://www.oberhumer.com/opensource/lzo") |
566 | (synopsis | |
e881752c | 567 | "Data compression library suitable for real-time data de-/compression") |
c6eac761 LC |
568 | (description |
569 | "LZO is a data compression library which is suitable for data | |
570 | de-/compression in real-time. This means it favours speed over | |
571 | compression ratio. | |
572 | ||
573 | LZO is written in ANSI C. Both the source code and the compressed data | |
574 | format are designed to be portable across platforms.") | |
4a44e743 | 575 | (license license:gpl2+))) |
0f323dad | 576 | |
a9f48ff0 EB |
577 | (define-public lzop |
578 | (package | |
579 | (name "lzop") | |
89d159fe | 580 | (version "1.04") |
a9f48ff0 EB |
581 | (source |
582 | (origin | |
583 | (method url-fetch) | |
584 | (uri (string-append "http://www.lzop.org/download/lzop-" | |
585 | version ".tar.gz")) | |
586 | (sha256 | |
587 | (base32 | |
89d159fe | 588 | "0h9gb8q7y54m9mvy3jvsmxf21yx8fc3ylzh418hgbbv0i8mbcwky")))) |
a9f48ff0 EB |
589 | (build-system gnu-build-system) |
590 | (inputs `(("lzo" ,lzo))) | |
6f465a51 | 591 | (home-page "https://www.lzop.org/") |
a9f48ff0 EB |
592 | (synopsis "Compress or expand files") |
593 | (description | |
594 | "Lzop is a file compressor which is very similar to gzip. Lzop uses the | |
595 | LZO data compression library for compression services, and its main advantages | |
596 | over gzip are much higher compression and decompression speed (at the cost of | |
597 | some compression ratio).") | |
598 | (license license:gpl2+))) | |
599 | ||
0f323dad LC |
600 | (define-public lzip |
601 | (package | |
602 | (name "lzip") | |
43d9ed77 | 603 | (version "1.21") |
0f323dad LC |
604 | (source (origin |
605 | (method url-fetch) | |
606 | (uri (string-append "mirror://savannah/lzip/lzip-" | |
607 | version ".tar.gz")) | |
608 | (sha256 | |
609 | (base32 | |
43d9ed77 | 610 | "12qdcw5k1cx77brv9yxi1h4dzwibhfmdpigrj43nfk8nscwm12z4")))) |
0f323dad | 611 | (build-system gnu-build-system) |
340978d7 | 612 | (home-page "https://www.nongnu.org/lzip/lzip.html") |
0f323dad LC |
613 | (synopsis "Lossless data compressor based on the LZMA algorithm") |
614 | (description | |
615 | "Lzip is a lossless data compressor with a user interface similar to the | |
616 | one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses | |
0963e3e4 | 617 | more than bzip2, which makes it well-suited for software distribution and data |
0f323dad LC |
618 | archiving. Lzip is a clean implementation of the LZMA algorithm.") |
619 | (license license:gpl3+))) | |
b357faac | 620 | |
9d9fc399 TGR |
621 | (define-public lziprecover |
622 | (package | |
623 | (name "lziprecover") | |
b099b4a7 | 624 | (version "1.21") |
9d9fc399 TGR |
625 | (source (origin |
626 | (method url-fetch) | |
f6145bb6 TGR |
627 | (uri (string-append "mirror://savannah/lzip/lziprecover/" |
628 | "lziprecover-" version ".tar.gz")) | |
9d9fc399 TGR |
629 | (sha256 |
630 | (base32 | |
b099b4a7 | 631 | "094w2z8fz41yaq0gkyr61cl7pb1d7kchpl5dka7rvm3qvbb7ncd2")))) |
9d9fc399 | 632 | (build-system gnu-build-system) |
340978d7 | 633 | (home-page "https://www.nongnu.org/lzip/lziprecover.html") |
9d9fc399 TGR |
634 | (synopsis "Recover and decompress data from damaged lzip files") |
635 | (description | |
636 | "Lziprecover is a data recovery tool and decompressor for files in the lzip | |
637 | compressed data format (.lz). It can test the integrity of lzip files, extract | |
638 | data from damaged ones, and repair most files with small errors (up to one | |
639 | single-byte error per member) entirely. | |
640 | ||
641 | Lziprecover is not a replacement for regular backups, but a last line of defence | |
642 | when even the backups are corrupt. It can recover files by merging the good | |
643 | parts of two or more damaged copies, such as can be easily produced by running | |
644 | @command{ddrescue} on a failing device. | |
645 | ||
646 | This package also includes @command{unzcrash}, a tool to test the robustness of | |
647 | decompressors when faced with corrupted input.") | |
648 | (license (list license:bsd-2 ; arg_parser.{cc,h} | |
649 | license:gpl2+)))) ; everything else | |
650 | ||
b357faac AE |
651 | (define-public sharutils |
652 | (package | |
653 | (name "sharutils") | |
9a59ce24 | 654 | (version "4.15.2") |
b357faac AE |
655 | (source |
656 | (origin | |
657 | (method url-fetch) | |
658 | (uri (string-append "mirror://gnu/sharutils/sharutils-" | |
659 | version ".tar.xz")) | |
d0ee11b2 | 660 | (patches (search-patches "sharutils-CVE-2018-1000097.patch")) |
b357faac AE |
661 | (sha256 |
662 | (base32 | |
b50d58b3 | 663 | "16isapn8f39lnffc3dp4dan05b7x6mnc76v6q5nn8ysxvvvwy19b")) |
211db9ca EF |
664 | (modules '((guix build utils))) |
665 | (snippet | |
666 | '(begin | |
667 | (substitute* (find-files "lib" "\\.c$") | |
668 | (("#if defined _IO_ftrylockfile") | |
669 | "#if defined _IO_EOF_SEEN")) | |
670 | (substitute* "lib/stdio-impl.h" | |
671 | (("^/\\* BSD stdio derived implementations") | |
672 | (string-append "#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN\n" | |
673 | "# define _IO_IN_BACKUP 0x100\n" | |
674 | "#endif\n\n" | |
675 | "/* BSD stdio derived implementations"))) | |
676 | #t)))) | |
b357faac AE |
677 | (build-system gnu-build-system) |
678 | (inputs | |
679 | `(("which" ,which))) | |
680 | (arguments | |
681 | `(#:phases | |
dc1d3cde KK |
682 | (modify-phases %standard-phases |
683 | (add-after 'patch-source-shebangs 'unpatch-source-shebang | |
684 | ;; revert the patch-shebang phase on a script which is | |
685 | ;; in fact test data | |
686 | (lambda _ | |
687 | (substitute* "tests/shar-1.ok" | |
688 | (((which "sh")) "/bin/sh")) | |
689 | #t))))) | |
6fd52309 | 690 | (home-page "https://www.gnu.org/software/sharutils/") |
b357faac AE |
691 | (synopsis "Archives in shell scripts, uuencode/uudecode") |
692 | (description | |
79c311b8 LC |
693 | "GNU sharutils is a package for creating and manipulating shell |
694 | archives that can be readily emailed. A shell archive is a file that can be | |
e881752c | 695 | processed by a Bourne-type shell to unpack the original collection of files. |
79c311b8 | 696 | This package is mostly for compatibility and historical interest.") |
b357faac | 697 | (license license:gpl3+))) |
28469ab0 | 698 | |
646898b3 RW |
699 | (define-public sfarklib |
700 | (package | |
701 | (name "sfarklib") | |
979f9e8a | 702 | (version "2.24") |
646898b3 | 703 | (source (origin |
d40362f4 EF |
704 | (method git-fetch) |
705 | (uri (git-reference | |
b0e7b699 | 706 | (url "https://github.com/raboof/sfArkLib") |
d40362f4 EF |
707 | (commit version))) |
708 | (file-name (git-file-name name version)) | |
646898b3 RW |
709 | (sha256 |
710 | (base32 | |
d40362f4 | 711 | "0jrxy24gak7q5ml06p5jjgzk9i5r2mkfjk4ycirkp4kg7k5a237w")))) |
646898b3 RW |
712 | (build-system gnu-build-system) |
713 | (arguments | |
714 | `(#:tests? #f ;no "check" target | |
715 | #:phases | |
716 | (modify-phases %standard-phases | |
717 | (replace 'configure | |
718 | (lambda* (#:key outputs #:allow-other-keys) | |
719 | (substitute* "Makefile" | |
720 | (("/usr/local") (assoc-ref outputs "out"))) | |
721 | #t))))) | |
722 | (inputs | |
723 | `(("zlib" ,zlib))) | |
724 | (home-page "https://github.com/raboof/sfArkLib") | |
725 | (synopsis "Library for SoundFont decompression") | |
726 | (description | |
727 | "SfArkLib is a C++ library for decompressing SoundFont files compressed | |
728 | with the sfArk algorithm.") | |
729 | (license license:gpl3+))) | |
730 | ||
b5ad1659 | 731 | (define-public sfarkxtc |
3fa31317 RW |
732 | (let ((commit "13cd6f93725a90d91ec5ea75babf1dbd694ac463") |
733 | (revision "1")) | |
734 | (package | |
735 | (name "sfarkxtc") | |
736 | (version (git-version "0" revision commit)) | |
737 | (source (origin | |
738 | ;; There are no release tarballs, so we just fetch the latest | |
739 | ;; commit at this time. | |
740 | (method git-fetch) | |
741 | (uri (git-reference | |
b0e7b699 | 742 | (url "https://github.com/raboof/sfarkxtc") |
3fa31317 RW |
743 | (commit commit))) |
744 | (file-name (git-file-name name version)) | |
745 | (sha256 | |
746 | (base32 | |
747 | "1mb1jyk1m11l1gppd9hmql9cyp55sdf7jk5rbc7acky1z4k4mv19")))) | |
748 | (build-system gnu-build-system) | |
749 | (arguments | |
750 | `(#:tests? #f ;no "check" target | |
751 | #:phases | |
752 | (modify-phases %standard-phases | |
753 | (replace 'configure | |
754 | (lambda* (#:key outputs #:allow-other-keys) | |
755 | (substitute* "Makefile" | |
756 | (("/usr/local") (assoc-ref outputs "out"))) | |
757 | #t))))) | |
758 | (inputs | |
759 | `(("zlib" ,zlib) | |
760 | ("sfarklib" ,sfarklib))) | |
761 | (home-page "https://github.com/raboof/sfarkxtc") | |
762 | (synopsis "Basic sfArk decompressor") | |
763 | (description "SfArk extractor converts SoundFonts in the compressed legacy | |
b5ad1659 | 764 | sfArk file format to the uncompressed sf2 format.") |
3fa31317 | 765 | (license license:gpl3+)))) |
b5ad1659 | 766 | |
27f76fe6 TUBK |
767 | (define-public libmspack |
768 | (package | |
769 | (name "libmspack") | |
27b2f34c | 770 | (home-page "https://cabextract.org.uk/libmspack/") |
511930c2 | 771 | (version "0.10.1") |
27f76fe6 TUBK |
772 | (source |
773 | (origin | |
774 | (method url-fetch) | |
27b2f34c | 775 | (uri (string-append home-page name "-" version "alpha.tar.gz")) |
27f76fe6 | 776 | (sha256 |
511930c2 | 777 | (base32 "13janaqsvm7aqc4agjgd4819pbgqv50j88bh5kci1z70wvg65j5s")))) |
27f76fe6 | 778 | (build-system gnu-build-system) |
03c16bb5 MB |
779 | (arguments |
780 | `(#:configure-flags '("--disable-static"))) | |
27f76fe6 TUBK |
781 | (synopsis "Compression tools for some formats used by Microsoft") |
782 | (description | |
783 | "The purpose of libmspack is to provide both compression and | |
784 | decompression of some loosely related file formats used by Microsoft.") | |
785 | (license license:lgpl2.1+))) | |
73f542c3 | 786 | |
82aa2a28 LF |
787 | (define-public lz4 |
788 | (package | |
789 | (name "lz4") | |
9205f451 | 790 | (version "1.9.2") |
82aa2a28 LF |
791 | (source |
792 | (origin | |
b38cfa1d MB |
793 | (method git-fetch) |
794 | (uri (git-reference (url "https://github.com/lz4/lz4") | |
795 | (commit (string-append "v" version)))) | |
82aa2a28 | 796 | (sha256 |
b496bfea | 797 | (base32 |
9205f451 | 798 | "0lpaypmk70ag2ks3kf2dl4ac3ba40n5kc1ainkp9wfjawz76mh61")) |
b38cfa1d | 799 | (file-name (git-file-name name version)))) |
82aa2a28 | 800 | (build-system gnu-build-system) |
9205f451 MB |
801 | (native-inputs |
802 | `(;; For tests. | |
803 | ("python" ,python) | |
804 | ("valgrind" ,valgrind))) | |
82aa2a28 LF |
805 | (arguments |
806 | `(#:test-target "test" | |
82aa2a28 | 807 | #:make-flags (list "CC=gcc" |
0dd6d21a | 808 | (string-append "prefix=" (assoc-ref %outputs "out"))) |
82aa2a28 | 809 | #:phases (modify-phases %standard-phases |
97e537c3 MB |
810 | (delete 'configure) ;no configure script |
811 | (add-before 'check 'disable-broken-test | |
812 | (lambda _ | |
813 | ;; XXX: test_install.sh fails when prefix is a subdirectory. | |
814 | (substitute* "tests/Makefile" | |
815 | (("^test: (.*) test-install" _ targets) | |
816 | (string-append "test: " targets))) | |
986dce4f MB |
817 | #t)) |
818 | (add-after 'install 'delete-static-library | |
819 | (lambda* (#:key outputs #:allow-other-keys) | |
820 | (let ((out (assoc-ref outputs "out"))) | |
821 | (delete-file (string-append out "/lib/liblz4.a")) | |
822 | #t)))))) | |
fd174342 | 823 | (home-page "https://www.lz4.org") |
82aa2a28 LF |
824 | (synopsis "Compression algorithm focused on speed") |
825 | (description "LZ4 is a lossless compression algorithm, providing | |
826 | compression speed at 400 MB/s per core (0.16 Bytes/cycle). It also features an | |
827 | extremely fast decoder, with speed in multiple GB/s per core (0.71 Bytes/cycle). | |
828 | A high compression derivative, called LZ4_HC, is also provided. It trades CPU | |
829 | time for compression ratio.") | |
b7585ca3 | 830 | ;; The libraries (lz4, lz4hc, and xxhash) are BSD licenced. The command |
82aa2a28 LF |
831 | ;; line interface programs (lz4, fullbench, fuzzer, datagen) are GPL2+. |
832 | (license (list license:bsd-2 license:gpl2+)))) | |
dd8d6d65 SB |
833 | |
834 | (define-public squashfs-tools | |
835 | (package | |
836 | (name "squashfs-tools") | |
957fe1c2 | 837 | (version "4.4") |
dd8d6d65 SB |
838 | (source (origin |
839 | (method url-fetch) | |
de67e922 LF |
840 | (uri (string-append "mirror://sourceforge/squashfs/squashfs/" |
841 | "squashfs" version "/" | |
dd8d6d65 SB |
842 | "squashfs" version ".tar.gz")) |
843 | (sha256 | |
844 | (base32 | |
957fe1c2 | 845 | "0zmhvczscqz0mzh4b9m8m42asq14db0a6lc8clp5ljq5ybrv70d9")))) |
dd8d6d65 SB |
846 | (build-system gnu-build-system) |
847 | (arguments | |
957fe1c2 | 848 | '(#:tests? #f ; no check target |
dd8d6d65 SB |
849 | #:make-flags |
850 | (list "CC=gcc" | |
851 | "XZ_SUPPORT=1" | |
852 | "LZO_SUPPORT=1" | |
853 | "LZ4_SUPPORT=1" | |
854 | (string-append "INSTALL_DIR=" %output "/bin")) | |
855 | #:phases | |
856 | (modify-phases %standard-phases | |
857 | (replace 'configure | |
f793b4ef EF |
858 | (lambda _ |
859 | (chdir "squashfs-tools") | |
f793b4ef | 860 | #t))))) |
dd8d6d65 SB |
861 | (inputs |
862 | `(("lz4" ,lz4) | |
863 | ("lzo" ,lzo) | |
864 | ("xz" ,xz) | |
865 | ("zlib" ,zlib))) | |
c5bb55a8 | 866 | (home-page "https://github.com/plougher/squashfs-tools") |
8f65585b | 867 | (synopsis "Tools to create and extract squashfs file systems") |
dd8d6d65 | 868 | (description |
8f65585b | 869 | "Squashfs is a highly compressed read-only file system for Linux. It uses |
dd8d6d65 SB |
870 | zlib to compress files, inodes, and directories. All blocks are packed to |
871 | minimize the data overhead, and block sizes of between 4K and 1M are supported. | |
872 | It is intended to be used for archival use, for live CDs, and for embedded | |
873 | systems where low overhead is needed. This package allows you to create and | |
8f65585b | 874 | extract such file systems.") |
dd8d6d65 | 875 | (license license:gpl2+))) |
820dc3f5 JM |
876 | |
877 | (define-public pigz | |
878 | (package | |
879 | (name "pigz") | |
9dae73c3 | 880 | (version "2.4") |
820dc3f5 JM |
881 | (source (origin |
882 | (method url-fetch) | |
883 | (uri (string-append "http://zlib.net/pigz/" | |
884 | name "-" version ".tar.gz")) | |
885 | (sha256 | |
886 | (base32 | |
9dae73c3 | 887 | "0wsgw5vwl23jrnpsvd8v3xcp5k4waw5mk0164fynjhkv58i1dy54")))) |
820dc3f5 JM |
888 | (build-system gnu-build-system) |
889 | (arguments | |
890 | `(#:phases | |
891 | (modify-phases %standard-phases | |
892 | (delete 'configure) | |
893 | (replace 'install | |
894 | (lambda* (#:key outputs #:allow-other-keys) | |
895 | (let* ((out (assoc-ref outputs "out")) | |
896 | (bin (string-append out "/bin")) | |
897 | (man (string-append out "/share/man/man1"))) | |
898 | (install-file "pigz" bin) | |
899 | (symlink "pigz" (string-append bin "/unpigz")) | |
900 | (install-file "pigz.1" man) | |
901 | #t)))) | |
9b9bc1b0 TGR |
902 | #:make-flags |
903 | (list ,(string-append "CC=" (cc-for-target))) | |
820dc3f5 JM |
904 | #:test-target "tests")) |
905 | (inputs `(("zlib" ,zlib))) | |
7f1773ea | 906 | (home-page "https://zlib.net/pigz/") |
820dc3f5 JM |
907 | (synopsis "Parallel implementation of gzip") |
908 | (description | |
909 | "This package provides a parallel implementation of gzip that exploits | |
910 | multiple processors and multiple cores when compressing data.") | |
911 | ||
912 | ;; Things under zopfli/ are under ASL2.0, but 4 files at the top-level, | |
913 | ;; written by Mark Adler, are under another non-copyleft license. | |
914 | (license license:asl2.0))) | |
23f3cbb8 BW |
915 | |
916 | (define-public pixz | |
917 | (package | |
918 | (name "pixz") | |
468c8f64 | 919 | (version "1.0.7") |
23f3cbb8 BW |
920 | (source (origin |
921 | (method url-fetch) | |
922 | (uri (string-append | |
923 | "https://github.com/vasi/pixz/releases/download/v" version | |
924 | "/pixz-" version ".tar.xz")) | |
925 | (sha256 | |
926 | (base32 | |
468c8f64 | 927 | "1ifxr18f2h75gkcrkx8033kwmwmrcgxshpaawyc2n4dzn1p2rqz5")))) |
23f3cbb8 BW |
928 | (build-system gnu-build-system) |
929 | (native-inputs | |
930 | `(("pkg-config" ,pkg-config) | |
931 | ("libarchive" ,libarchive))) | |
932 | (home-page "https://github.com/vasi/pixz") | |
933 | (synopsis "Parallel indexing implementation of LZMA") | |
934 | (description | |
935 | "The existing XZ Utils provide great compression in the .xz file format, | |
936 | but they produce just one big block of compressed data. Pixz instead produces | |
937 | a collection of smaller blocks which makes random access to the original data | |
938 | possible and can compress in parallel. This is especially useful for large | |
939 | tarballs.") | |
940 | (license license:bsd-2))) | |
69d9792a | 941 | |
ac83cf22 MB |
942 | (define-public bsdiff |
943 | (package | |
944 | (name "bsdiff") | |
945 | (version "4.3") | |
946 | (home-page "https://www.daemonology.net/bsdiff/") | |
947 | (source (origin | |
948 | (method url-fetch) | |
949 | (uri (string-append home-page name "-" version ".tar.gz")) | |
950 | (sha256 | |
951 | (base32 | |
952 | "0j2zm3z271x5aw63mwhr3vymzn45p2vvrlrpm9cz2nywna41b0hq")))) | |
953 | (build-system gnu-build-system) | |
954 | (arguments | |
955 | `(#:make-flags (list "INSTALL=install" "CC=gcc" | |
956 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
957 | #:phases (modify-phases %standard-phases | |
958 | (delete 'configure) | |
959 | (add-before 'build 'fix-Makefile | |
960 | (lambda _ | |
961 | (substitute* "Makefile" | |
962 | ;; Adjust syntax to make it compatible with GNU Make. | |
963 | (("^\\.") "") | |
964 | ;; Help install(1) create the target directory. | |
965 | (("\\$\\{PREFIX\\}") "-D -t ${PREFIX}")) | |
966 | #t))) | |
967 | #:tests? #f)) ;no tests | |
968 | (inputs | |
969 | `(("bzip2" ,bzip2))) | |
970 | (synopsis "Patch binary files") | |
971 | (description | |
972 | "@command{bsdiff} and @command{bspatch} are tools for building and | |
973 | applying patches to binary files. By using suffix sorting (specifically | |
974 | Larsson and Sadakane's @code{qsufsort}) and taking advantage of how | |
975 | executable files change, bsdiff routinely produces binary patches 50-80% | |
976 | smaller than those produced by @code{Xdelta}.") | |
977 | (license license:bsd-2))) | |
3fd4b90d DM |
978 | |
979 | (define-public cabextract | |
980 | (package | |
981 | (name "cabextract") | |
27b2f34c | 982 | (home-page "https://cabextract.org.uk/") |
bde093c2 | 983 | (version "1.9.1") |
3fd4b90d DM |
984 | (source (origin |
985 | (method url-fetch) | |
393b55d5 | 986 | (uri (string-append home-page "cabextract-" version ".tar.gz")) |
3fd4b90d DM |
987 | (sha256 |
988 | (base32 | |
bde093c2 | 989 | "19qwhl2r8ip95q4vxzxg2kp4p125hjmc9762sns1dwwf7ikm7hmg")) |
92526ade MB |
990 | (modules '((guix build utils))) |
991 | (snippet | |
992 | '(begin | |
993 | ;; Delete bundled libmspack. | |
994 | (delete-file-recursively "mspack") | |
995 | #t)))) | |
3fd4b90d | 996 | (build-system gnu-build-system) |
b3175c70 KK |
997 | (arguments |
998 | '(#:configure-flags '("--with-external-libmspack") | |
999 | #:phases | |
1000 | (modify-phases %standard-phases | |
1001 | ;; cabextract needs some of libmspack's header files. | |
1002 | ;; These are located in the "mspack" directory of libmspack. | |
1003 | (add-before 'build 'unpack-libmspack | |
1004 | (lambda* (#:key inputs #:allow-other-keys) | |
1005 | (let ((dir-name "libmspack-src")) | |
1006 | (mkdir dir-name) | |
1007 | (invoke "tar" "-xvf" (assoc-ref inputs "libmspack-source") | |
1008 | "-C" dir-name "--strip-components" "1") | |
1009 | (rename-file (string-append dir-name "/mspack") | |
1010 | "mspack") | |
1011 | (delete-file-recursively dir-name) | |
1012 | #t)))))) | |
3fd4b90d DM |
1013 | (native-inputs |
1014 | `(("pkg-config" ,pkg-config))) | |
1015 | (inputs | |
b3175c70 KK |
1016 | `(("libmspack" ,libmspack) |
1017 | ("libmspack-source" ,(package-source libmspack)))) | |
3fd4b90d DM |
1018 | (synopsis "Tool to unpack Cabinet archives") |
1019 | (description "Extracts files out of Microsoft Cabinet (.cab) archives") | |
1020 | ;; Some source files specify gpl2+, lgpl2+, however COPYING is gpl3. | |
1021 | (license license:gpl3+))) | |
0b073506 TGR |
1022 | |
1023 | (define-public xdelta | |
1024 | (package | |
1025 | (name "xdelta") | |
1026 | (version "3.1.0") | |
1027 | (source | |
1028 | (origin | |
0633c77b RW |
1029 | (method git-fetch) |
1030 | (uri (git-reference | |
b0e7b699 | 1031 | (url "https://github.com/jmacd/xdelta") |
0633c77b RW |
1032 | (commit (string-append "v" version)))) |
1033 | (file-name (git-file-name name version)) | |
0b073506 TGR |
1034 | (sha256 |
1035 | (base32 | |
0633c77b | 1036 | "09mmsalc7dwlvgrda56s2k927rpl3a5dzfa88aslkqcjnr790wjy")) |
0b073506 TGR |
1037 | (snippet |
1038 | ;; This file isn't freely distributable and has no effect on building. | |
6cbee49d MW |
1039 | '(begin |
1040 | (delete-file "xdelta3/draft-korn-vcdiff.txt") | |
1041 | #t)))) | |
0b073506 TGR |
1042 | (build-system gnu-build-system) |
1043 | (native-inputs | |
1044 | `(("autoconf" ,autoconf) | |
1045 | ("automake" ,automake))) | |
1046 | (arguments | |
1047 | `(#:phases | |
1048 | (modify-phases %standard-phases | |
1049 | (add-after 'unpack 'enter-build-directory | |
e5ff963a | 1050 | (lambda _ (chdir "xdelta3") #t))))) |
69b7fa3e | 1051 | (home-page "http://xdelta.org") |
0b073506 TGR |
1052 | (synopsis "Delta encoder for binary files") |
1053 | (description "xdelta encodes only the differences between two binary files | |
1054 | using the VCDIFF algorithm and patch file format described in RFC 3284. It can | |
1055 | also be used to apply such patches. xdelta is similar to @command{diff} and | |
1056 | @command{patch}, but is not limited to plain text and does not generate | |
1057 | human-readable output.") | |
1058 | (license license:asl2.0))) | |
389eb3fa TGR |
1059 | |
1060 | (define-public lrzip | |
1061 | (package | |
1062 | (name "lrzip") | |
666619d0 | 1063 | (version "0.631") |
389eb3fa TGR |
1064 | (source |
1065 | (origin | |
1066 | (method url-fetch) | |
1067 | (uri (string-append | |
1068 | "http://ck.kolivas.org/apps/lrzip/lrzip-" version ".tar.bz2")) | |
1069 | (sha256 | |
1070 | (base32 | |
5400fdfd TGR |
1071 | "0mb449vmmwpkalq732jdyginvql57nxyd31sszb108yps1lf448d")) |
1072 | (patches (search-patches "lrzip-CVE-2017-8842.patch")))) | |
389eb3fa TGR |
1073 | (build-system gnu-build-system) |
1074 | (native-inputs | |
1075 | `(;; nasm is only required when building for 32-bit x86 platforms | |
1076 | ,@(if (string-prefix? "i686" (or (%current-target-system) | |
1077 | (%current-system))) | |
1078 | `(("nasm" ,nasm)) | |
1079 | '()) | |
1080 | ("perl" ,perl))) | |
1081 | (inputs | |
1082 | `(("bzip2" ,bzip2) | |
1083 | ("lzo" ,lzo) | |
1084 | ("zlib" ,zlib))) | |
1085 | (home-page "http://ck.kolivas.org/apps/lrzip/") | |
1086 | (synopsis "Large file compressor with a very high compression ratio") | |
1087 | (description "lrzip is a compression utility that uses long-range | |
1088 | redundancy reduction to improve the subsequent compression ratio of | |
1089 | larger files. It can then further compress the result with the ZPAQ or | |
1090 | LZMA algorithms for maximum compression, or LZO for maximum speed. This | |
1091 | choice between size or speed allows for either better compression than | |
1092 | even LZMA can provide, or a higher speed than gzip while compressing as | |
1093 | well as bzip2.") | |
1094 | (license (list license:gpl3+ | |
1095 | license:public-domain)))) ; most files in lzma/ | |
e4c2136d DC |
1096 | |
1097 | (define-public snappy | |
1098 | (package | |
1099 | (name "snappy") | |
a5407c76 | 1100 | (version "1.1.8") |
16de7f15 TGR |
1101 | (source |
1102 | (origin | |
898ac8e7 EF |
1103 | (method git-fetch) |
1104 | (uri (git-reference | |
b0e7b699 | 1105 | (url "https://github.com/google/snappy") |
898ac8e7 EF |
1106 | (commit version))) |
1107 | (file-name (git-file-name name version)) | |
16de7f15 | 1108 | (sha256 |
a5407c76 | 1109 | (base32 "1j0kslq2dvxgkcxl1gakhvsa731yrcvcaipcp5k8k7ayicvkv9jv")) |
16de7f15 | 1110 | (patches (search-patches "snappy-add-O2-flag-in-CmakeLists.txt.patch")))) |
5a437357 MB |
1111 | (build-system cmake-build-system) |
1112 | (arguments | |
1113 | `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) | |
e4c2136d DC |
1114 | (home-page "https://github.com/google/snappy") |
1115 | (synopsis "Fast compressor/decompressor") | |
5a437357 | 1116 | (description "Snappy is a compression/decompression library. It does not |
e4c2136d | 1117 | aim for maximum compression, or compatibility with any other compression library; |
5a437357 | 1118 | instead, it aims for very high speeds and reasonable compression. For instance, |
e4c2136d DC |
1119 | compared to the fastest mode of zlib, Snappy is an order of magnitude faster |
1120 | for most inputs, but the resulting compressed files are anywhere from 20% to | |
1121 | 100% bigger.") | |
1122 | (license license:asl2.0))) | |
adbd7faf KK |
1123 | |
1124 | (define-public p7zip | |
1125 | (package | |
1126 | (name "p7zip") | |
1127 | (version "16.02") | |
1128 | (source (origin | |
1129 | (method url-fetch) | |
1130 | (uri (string-append "mirror://sourceforge/" name "/" name "/" | |
1131 | version "/" name "_" version | |
1132 | "_src_all.tar.bz2")) | |
1133 | (sha256 | |
1134 | (base32 | |
1135 | "07rlwbbgszq8i7m8jh3x6j2w2hc9a72dc7fmqawnqkwlwb00mcjy")) | |
1136 | (modules '((guix build utils))) | |
1137 | (snippet | |
1138 | '(begin | |
1139 | ;; Remove non-free source files | |
1140 | (for-each delete-file | |
1141 | (append | |
1142 | (find-files "CPP/7zip/Compress" "Rar.*") | |
1143 | (find-files "CPP/7zip/Crypto" "Rar.*") | |
1144 | (find-files "DOC/unRarLicense.txt") | |
1145 | (find-files "Utils/file_Codecs_Rar_so.py"))) | |
1146 | (delete-file-recursively "CPP/7zip/Archive/Rar") | |
1147 | (delete-file-recursively "CPP/7zip/Compress/Rar") | |
1148 | #t)) | |
1ac675a5 | 1149 | (patches (search-patches "p7zip-CVE-2016-9296.patch" |
a630c647 | 1150 | "p7zip-CVE-2017-17969.patch" |
1ac675a5 | 1151 | "p7zip-remove-unused-code.patch")))) |
adbd7faf KK |
1152 | (build-system gnu-build-system) |
1153 | (arguments | |
1154 | `(#:make-flags | |
1155 | (list (string-append "DEST_HOME=" (assoc-ref %outputs "out")) "all3") | |
1156 | #:phases | |
1157 | (modify-phases %standard-phases | |
1158 | (replace 'configure | |
1159 | (lambda* (#:key system outputs #:allow-other-keys) | |
8fcdd9d5 MW |
1160 | (invoke "cp" |
1161 | (let ((system ,(or (%current-target-system) | |
1162 | (%current-system)))) | |
1163 | (cond | |
1164 | ((string-prefix? "x86_64" system) | |
1165 | "makefile.linux_amd64_asm") | |
1166 | ((string-prefix? "i686" system) | |
1167 | "makefile.linux_x86_asm_gcc_4.X") | |
1168 | (else | |
1169 | "makefile.linux_any_cpu_gcc_4.X"))) | |
1170 | "makefile.machine"))) | |
adbd7faf KK |
1171 | (replace 'check |
1172 | (lambda _ | |
8fcdd9d5 MW |
1173 | (invoke "make" "test") |
1174 | (invoke "make" "test_7z") | |
1175 | (invoke "make" "test_7zr")))))) | |
0f4f5715 | 1176 | (native-inputs |
adbd7faf KK |
1177 | (let ((system (or (%current-target-system) |
1178 | (%current-system)))) | |
1179 | `(,@(cond ((string-prefix? "x86_64" system) | |
1180 | `(("yasm" ,yasm))) | |
1181 | ((string-prefix? "i686" system) | |
1182 | `(("nasm" ,nasm))) | |
1183 | (else '()))))) | |
1184 | (home-page "http://p7zip.sourceforge.net/") | |
1185 | (synopsis "Command-line file archiver with high compression ratio") | |
1186 | (description "p7zip is a command-line port of 7-Zip, a file archiver that | |
1187 | handles the 7z format which features very high compression ratios.") | |
1188 | (license (list license:lgpl2.1+ | |
1189 | license:gpl2+ | |
1190 | license:public-domain)))) | |
618089f9 MB |
1191 | |
1192 | (define-public gzstream | |
1193 | (package | |
1194 | (name "gzstream") | |
1195 | (version "1.5") | |
1196 | (source (origin | |
1197 | (method url-fetch) | |
1198 | (uri | |
1199 | ;; No versioned URL, but last release was in 2003. | |
1200 | "http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.tgz") | |
1201 | (file-name (string-append name "-" version ".tgz")) | |
1202 | (sha256 | |
1203 | (base32 | |
1204 | "00y19pqjsdj5zcrx4p9j56pl73vayfwnb7y2hvp423nx0cwv5b4r")) | |
1205 | (modules '((guix build utils))) | |
1206 | (snippet | |
1207 | ;; Remove pre-compiled object. | |
6cbee49d MW |
1208 | '(begin |
1209 | (delete-file "gzstream.o") | |
1210 | #t)))) | |
618089f9 MB |
1211 | (build-system gnu-build-system) |
1212 | (arguments | |
1213 | `(#:test-target "test" | |
1214 | #:phases | |
1215 | (modify-phases %standard-phases | |
1216 | (delete 'configure) | |
1217 | (replace 'install | |
1218 | (lambda* (#:key outputs #:allow-other-keys) | |
1219 | (let* ((out (assoc-ref outputs "out")) | |
1220 | (lib (string-append out "/lib")) | |
1221 | (include (string-append out "/include"))) | |
1222 | (install-file "libgzstream.a" lib) | |
1223 | (install-file "gzstream.h" include) | |
1224 | #t)))))) | |
1225 | (propagated-inputs `(("zlib" ,zlib))) | |
1226 | (home-page "http://www.cs.unc.edu/Research/compgeom/gzstream/") | |
1227 | (synopsis "Compressed C++ iostream") | |
1228 | (description "gzstream is a small library for providing zlib | |
1229 | functionality in a C++ iostream.") | |
1230 | (license license:lgpl2.1+))) | |
36df995c TGR |
1231 | |
1232 | (define-public zpaq | |
1233 | (package | |
1234 | (name "zpaq") | |
1235 | (version "7.15") | |
1236 | (source | |
1237 | (origin | |
1238 | (method url-fetch/zipbomb) | |
1239 | (uri (string-append "http://mattmahoney.net/dc/zpaq" | |
1240 | (string-delete #\. version) ".zip")) | |
1241 | (sha256 | |
1242 | (base32 | |
1243 | "066l94yyladlfzri877nh2dhkvspagjn3m5bmv725fmhkr9c4pp8")) | |
1244 | (modules '((guix build utils))) | |
1245 | (snippet | |
1246 | ;; Delete irrelevant pre-compiled binaries. | |
6cbee49d MW |
1247 | '(begin |
1248 | (for-each delete-file (find-files "." "\\.exe$")) | |
1249 | #t)))) | |
36df995c TGR |
1250 | (build-system gnu-build-system) |
1251 | (arguments | |
1252 | `(#:phases | |
1253 | (modify-phases %standard-phases | |
1254 | (delete 'configure)) ; no ‘configure’ script | |
1255 | #:make-flags | |
1256 | (list | |
1257 | (string-append "CPPFLAGS=-Dunix" | |
1258 | ,(match (or (%current-target-system) | |
1259 | (%current-system)) | |
1260 | ("x86_64-linux" "") | |
1261 | ("i686-linux" "") | |
1262 | (_ " -DNOJIT"))) | |
1263 | ;; These should be safe, lowest-common-denominator instruction sets, | |
1264 | ;; allowing for some optimisation while remaining reproducible. | |
effd7198 | 1265 | (string-append "CXXFLAGS=-O3 -DNDEBUG" |
36df995c TGR |
1266 | ,(match (or (%current-target-system) |
1267 | (%current-system)) | |
effd7198 EF |
1268 | ("x86_64-linux" " -march=nocona -mtune=generic") |
1269 | ("i686-linux" " -march=i686 -mtune=generic") | |
1270 | ("armhf-linux" " -mtune=generic-armv7-a") | |
36df995c TGR |
1271 | (_ ""))) |
1272 | (string-append "PREFIX=" | |
1273 | (assoc-ref %outputs "out"))))) | |
1274 | (native-inputs | |
1275 | `(("perl" ,perl))) ; for pod2man | |
1276 | (home-page "http://mattmahoney.net/dc/zpaq.html") | |
1277 | (synopsis "Incremental journaling archiver") | |
1278 | (description "ZPAQ is a command-line archiver for realistic situations with | |
1279 | many duplicate and already compressed files. It backs up only those files | |
1280 | modified since the last update. All previous versions remain untouched and can | |
1281 | be independently recovered. Identical files are only stored once (known as | |
1282 | @dfn{de-duplication}). Archives can also be encrypted. | |
1283 | ||
1284 | ZPAQ is intended to back up user data, not entire operating systems. It ignores | |
1285 | owner and group IDs, ACLs, extended attributes, or special file types like | |
1286 | devices, sockets, or named pipes. It does not follow or restore symbolic links | |
1287 | or junctions, and always follows hard links.") | |
1288 | (license (list license:public-domain | |
1289 | ;; libzpaq.cpp contains a mix of public-domain and | |
1290 | ;; expat-licenced (or ‘MIT’) code. | |
1291 | license:expat)))) | |
0da8313c | 1292 | |
9e6ada8f MR |
1293 | (define-public unshield |
1294 | (package | |
1295 | (name "unshield") | |
6cf48e8c | 1296 | (version "1.4.3") |
9e6ada8f | 1297 | (source |
298180cd EF |
1298 | (origin (method git-fetch) |
1299 | (uri (git-reference | |
1300 | (url "http://github.com/twogood/unshield.git") | |
1301 | (commit version))) | |
1302 | (file-name (git-file-name name version)) | |
9e6ada8f MR |
1303 | (sha256 |
1304 | (base32 | |
298180cd | 1305 | "19wn22vszhci8dfcixx5rliz7phx3lv5ablvhjlclvj75k2vsdqd")))) |
9e6ada8f MR |
1306 | (build-system cmake-build-system) |
1307 | (inputs | |
1308 | `(("zlib" ,zlib) | |
1309 | ("openssl" ,openssl) | |
6cf48e8c | 1310 | ;; Test data that is otherwise downloaded with curl. |
9e6ada8f MR |
1311 | ("unshield-avigomanager11b22.zip" |
1312 | ,(origin | |
1313 | (method url-fetch) | |
6cf48e8c TGR |
1314 | (uri (string-append |
1315 | "https://www.dropbox.com/s/8r4b6752swe3nhu/" | |
1316 | "unshield-avigomanager11b22.zip?dl=1")) | |
9e6ada8f MR |
1317 | (sha256 |
1318 | (base32 "0fwq7lih04if68wpwpsk5wjqyvh32db76a41sq6gbx4dn1lc3ddn")) | |
1319 | (file-name "unshield-avigomanager11b22.zip"))) | |
6cf48e8c TGR |
1320 | ("unshield-baldurs_gate_patch_v1_1_4315_international.zip" |
1321 | ,(origin | |
1322 | (method url-fetch) | |
1323 | (uri (string-append | |
1324 | "https://www.dropbox.com/s/9ruil8oi6amjbbk/" | |
1325 | "unshield-baldurs_gate_patch_v1_1_4315_international.zip?dl=1")) | |
1326 | (sha256 | |
1327 | (base32 "0spaxf6dardlhqxz3ys09fzamj007q3nfyw4xng6gh3qp9780maj")) | |
1328 | (file-name "unshield-baldurs_gate_patch_v1_1_4315_international.zip"))) | |
9e6ada8f MR |
1329 | ("unshield-the-feeble-files-spanish.zip" |
1330 | ,(origin | |
1331 | (method url-fetch) | |
6cf48e8c TGR |
1332 | (uri (string-append |
1333 | "https://www.dropbox.com/s/1ng0z9kfxc7eb1e/" | |
1334 | "unshield-the-feeble-files-spanish.zip?dl=1")) | |
9e6ada8f MR |
1335 | (sha256 |
1336 | (base32 "1k5cw6vnpja8yjlnhx5124xrw9i8s1l539hfdqqrqz3l5gn0bnyd")) | |
1337 | (file-name "unshield-the-feeble-files-spanish.zip"))))) | |
1338 | (native-inputs | |
1339 | `(("unzip" ,unzip))) | |
1340 | (arguments | |
1341 | `(#:out-of-source? #f | |
1342 | #:phases | |
1343 | (modify-phases %standard-phases | |
1344 | (add-before 'check 'pre-check | |
1345 | (lambda* (#:key inputs #:allow-other-keys) | |
1346 | (for-each (lambda (i) | |
1347 | (copy-file (assoc-ref inputs i) | |
1348 | (string-append "test/v0/" i))) | |
1349 | '("unshield-avigomanager11b22.zip" | |
6cf48e8c | 1350 | "unshield-baldurs_gate_patch_v1_1_4315_international.zip" |
9e6ada8f MR |
1351 | "unshield-the-feeble-files-spanish.zip")) |
1352 | (substitute* (find-files "test/" "/*\\.sh") | |
1353 | ;; Tests expect the unshield binary in a specific | |
1354 | ;; location. | |
1355 | (("/var/tmp/unshield/bin/unshield") | |
1356 | (string-append (getcwd) "/src/unshield")) | |
1357 | ;; We no longer need to download the data. | |
1358 | ((".?URL=.*$") "") | |
1359 | (("curl -(|f)sSL -o test.zip .*") "")) | |
1360 | (substitute* "test/v0/avigomanager.sh" | |
1361 | (("test.zip") | |
1362 | (string-append (getcwd) | |
6cf48e8c TGR |
1363 | "/test/v0/unshield-avigomanager11b22.zip"))) |
1364 | (substitute* "test/v0/baldurs_gate_patch_v1_1_4315_international.sh" | |
1365 | (("test.zip") | |
1366 | (string-append | |
1367 | (getcwd) | |
1368 | "/test/v0/unshield-baldurs_gate_patch_v1_1_4315_international.zip"))) | |
9e6ada8f MR |
1369 | (substitute* "test/v0/the-feeble-files-spanish.sh" |
1370 | (("test.zip") | |
1371 | (string-append (getcwd) | |
1372 | "/test/v0/unshield-the-feeble-files-spanish.zip"))) | |
1373 | #t)) | |
1374 | (replace 'check | |
1375 | (lambda _ | |
df04bd25 | 1376 | (invoke "./run-tests.sh")))))) |
9e6ada8f MR |
1377 | (home-page "https://github.com/twogood/unshield") |
1378 | (synopsis "Extract CAB files from InstallShield installers") | |
1379 | (description | |
1380 | "@command{unshield} is a tool and library for extracting @file{.cab} | |
1381 | archives from InstallShield installers.") | |
1382 | (license license:expat))) | |
1383 | ||
f6ac3101 TGR |
1384 | (define-public zstd |
1385 | (package | |
1386 | (name "zstd") | |
ca0576d6 | 1387 | (version "1.4.4") |
3880537c TGR |
1388 | (source |
1389 | (origin | |
1390 | (method url-fetch) | |
1391 | (uri (string-append "https://github.com/facebook/zstd/releases/download/" | |
1392 | "v" version "/zstd-" version ".tar.gz")) | |
1393 | (sha256 | |
ca0576d6 | 1394 | (base32 "05ckxap00qvc0j51d3ci38150cxsw82w7s9zgd5fgzspnzmp1vsr")))) |
f6ac3101 | 1395 | (build-system gnu-build-system) |
ca0576d6 MB |
1396 | (outputs '("out" ;1.2MiB executables and documentation |
1397 | "lib" ;1.2MiB shared library and headers | |
1398 | "static")) ;1.2MiB static library | |
f6ac3101 TGR |
1399 | (arguments |
1400 | `(#:phases | |
1401 | (modify-phases %standard-phases | |
ec0de9d8 MB |
1402 | (delete 'configure) ;no configure script |
1403 | (add-after 'install 'adjust-library-locations | |
1404 | (lambda* (#:key outputs #:allow-other-keys) | |
1405 | (let* ((out (assoc-ref outputs "out")) | |
1406 | (lib (assoc-ref outputs "lib")) | |
1407 | (static (assoc-ref outputs "static")) | |
1408 | (shared-libs (string-append lib "/lib")) | |
1409 | (static-libs (string-append static "/lib"))) | |
1410 | ;; Move the static library to its own output to save ~1MiB. | |
1411 | (mkdir-p static-libs) | |
1412 | (for-each (lambda (ar) | |
1413 | (link ar (string-append static-libs "/" | |
1414 | (basename ar))) | |
1415 | (delete-file ar)) | |
1416 | (find-files shared-libs "\\.a$")) | |
1417 | ||
ca0576d6 | 1418 | ;; Make sure the pkg-config file refers to the right output. |
ec0de9d8 | 1419 | (substitute* (string-append shared-libs "/pkgconfig/libzstd.pc") |
ca0576d6 MB |
1420 | (("^prefix=.*") |
1421 | (string-append "prefix=" lib "\n"))) | |
ec0de9d8 MB |
1422 | |
1423 | #t)))) | |
f6ac3101 TGR |
1424 | #:make-flags |
1425 | (list "CC=gcc" | |
f45e314e | 1426 | (string-append "PREFIX=" (assoc-ref %outputs "out")) |
ec0de9d8 MB |
1427 | (string-append "LIBDIR=" (assoc-ref %outputs "lib") "/lib") |
1428 | (string-append "INCLUDEDIR=" (assoc-ref %outputs "lib") "/include") | |
f45e314e TGR |
1429 | ;; Skip auto-detection of, and creating a dependency on, the build |
1430 | ;; environment's ‘xz’ for what amounts to a dubious feature anyway. | |
1431 | "HAVE_LZMA=0" | |
1432 | ;; Not currently detected, but be explicit & avoid surprises later. | |
1433 | "HAVE_LZ4=0" | |
e8073063 | 1434 | "HAVE_ZLIB=0"))) |
2f325b63 | 1435 | (home-page "https://facebook.github.io/zstd/") |
f6ac3101 TGR |
1436 | (synopsis "Zstandard real-time compression algorithm") |
1437 | (description "Zstandard (@command{zstd}) is a lossless compression algorithm | |
1438 | that combines very fast operation with a compression ratio comparable to that of | |
1439 | zlib. In most scenarios, both compression and decompression can be performed in | |
1440 | ‘real time’. The compressor can be configured to provide the most suitable | |
1441 | trade-off between compression ratio and speed, without affecting decompression | |
1442 | speed.") | |
1443 | (license (list license:bsd-3 ; the main top-level LICENSE file | |
16123d1d | 1444 | license:bsd-2 ; many files explicitly state 2-Clause |
5a719dee | 1445 | license:gpl2 ; the main top-level COPYING file |
16123d1d TGR |
1446 | license:gpl3+ ; tests/gzip/*.sh |
1447 | license:expat ; lib/dictBuilder/divsufsort.[ch] | |
f6ac3101 TGR |
1448 | license:public-domain ; zlibWrapper/examples/fitblk* |
1449 | license:zlib)))) ; zlibWrapper/{gz*.c,gzguts.h} | |
0f03c531 TGR |
1450 | |
1451 | (define-public pzstd | |
1452 | (package | |
1453 | (name "pzstd") | |
1454 | (version (package-version zstd)) | |
1455 | (source (package-source zstd)) | |
1456 | (build-system gnu-build-system) | |
1457 | (native-inputs | |
c695fb76 | 1458 | `(("googletest" ,googletest))) |
0f03c531 TGR |
1459 | (arguments |
1460 | `(#:phases | |
1461 | (modify-phases %standard-phases | |
1462 | (add-after 'unpack 'enter-subdirectory | |
9f6f726c | 1463 | (lambda _ (chdir "contrib/pzstd") #t)) |
0f03c531 TGR |
1464 | (delete 'configure) ; no configure script |
1465 | (add-before 'check 'compile-tests | |
1466 | (lambda* (#:key make-flags #:allow-other-keys) | |
745e83ca | 1467 | (apply invoke "make" "tests" make-flags))) |
0f03c531 TGR |
1468 | (add-after 'install 'install-documentation |
1469 | (lambda* (#:key outputs #:allow-other-keys) | |
1470 | (let* ((out (assoc-ref outputs "out")) | |
1471 | (doc (string-append out "/share/doc/" ,name))) | |
1472 | (mkdir-p doc) | |
1473 | (install-file "README.md" doc) | |
1474 | #t)))) | |
1475 | #:make-flags | |
1476 | (list "CC=gcc" | |
1477 | (string-append "PREFIX=" (assoc-ref %outputs "out"))))) | |
1478 | (home-page (package-home-page zstd)) | |
1479 | (synopsis "Threaded implementation of the Zstandard compression algorithm") | |
1480 | (description "Parallel Zstandard (PZstandard or @command{pzstd}) is a | |
1481 | multi-threaded implementation of the @uref{http://zstd.net/, Zstandard | |
1482 | compression algorithm}. It is fully compatible with the original Zstandard file | |
1483 | format and command-line interface, and can be used as a drop-in replacement. | |
1484 | ||
1485 | Compression is distributed over multiple processor cores to improve performance, | |
1486 | as is the decompression of data compressed in this manner. Data compressed by | |
1487 | other implementations will only be decompressed by two threads: one performing | |
1488 | the actual decompression, the other input and output.") | |
1489 | (license (package-license zstd)))) | |
148585c2 AI |
1490 | |
1491 | (define-public zip | |
1492 | (package | |
1493 | (name "zip") | |
1494 | (version "3.0") | |
1495 | (source | |
1496 | (origin | |
1497 | (method url-fetch) | |
1498 | (uri (string-append "mirror://sourceforge/infozip" | |
1499 | "/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz")) | |
1500 | (sha256 | |
1501 | (base32 | |
1502 | "0sb3h3067pzf3a7mlxn1hikpcjrsvycjcnj9hl9b1c3ykcgvps7h")))) | |
1503 | (build-system gnu-build-system) | |
1504 | (inputs `(("bzip2" ,bzip2))) | |
1505 | (arguments | |
1506 | `(#:tests? #f ; no test target | |
1507 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
1508 | (list "-f" "unix/Makefile" | |
1509 | (string-append "prefix=" out) | |
1510 | (string-append "MANDIR=" out "/share/man/man1"))) | |
148585c2 AI |
1511 | #:phases |
1512 | (modify-phases %standard-phases | |
1513 | (replace 'build | |
1514 | (lambda* (#:key (make-flags '()) #:allow-other-keys) | |
b0559d24 | 1515 | (apply invoke "make" "generic_gcc" make-flags))) |
148585c2 AI |
1516 | (delete 'configure)))) |
1517 | (home-page "http://www.info-zip.org/Zip.html") | |
1518 | (synopsis "Compression and file packing utility") | |
1519 | (description | |
1520 | "Zip is a compression and file packaging/archive utility. Zip is useful | |
1521 | for packaging a set of files for distribution, for archiving files, and for | |
1522 | saving disk space by temporarily compressing unused files or directories. | |
1523 | Zip puts one or more compressed files into a single ZIP archive, along with | |
1524 | information about the files (name, path, date, time of last modification, | |
1525 | protection, and check information to verify file integrity). An entire | |
1526 | directory structure can be packed into a ZIP archive with a single command. | |
1527 | ||
1528 | Zip has one compression method (deflation) and can also store files without | |
1529 | compression. Zip automatically chooses the better of the two for each file. | |
1530 | Compression ratios of 2:1 to 3:1 are common for text files.") | |
1531 | (license (license:non-copyleft "file://LICENSE" | |
1532 | "See LICENSE in the distribution.")))) | |
1533 | ||
1534 | (define-public unzip | |
1535 | (package (inherit zip) | |
1536 | (name "unzip") | |
1537 | (version "6.0") | |
1538 | (source | |
1539 | (origin | |
1540 | (method url-fetch) | |
1541 | (uri (string-append "mirror://sourceforge/infozip" | |
1542 | "/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz")) | |
1543 | (sha256 | |
1544 | (base32 | |
1545 | "0dxx11knh3nk95p2gg2ak777dd11pr7jx5das2g49l262scrcv83")) | |
1546 | (patches (search-patches "unzip-CVE-2014-8139.patch" | |
1547 | "unzip-CVE-2014-8140.patch" | |
1548 | "unzip-CVE-2014-8141.patch" | |
1549 | "unzip-CVE-2014-9636.patch" | |
1550 | "unzip-CVE-2015-7696.patch" | |
1551 | "unzip-CVE-2015-7697.patch" | |
1552 | "unzip-allow-greater-hostver-values.patch" | |
1553 | "unzip-initialize-symlink-flag.patch" | |
1554 | "unzip-remove-build-date.patch" | |
1555 | "unzip-attribs-overflow.patch" | |
1556 | "unzip-overflow-on-invalid-input.patch" | |
1557 | "unzip-format-secure.patch" | |
1558 | "unzip-overflow-long-fsize.patch")))) | |
1559 | (build-system gnu-build-system) | |
1560 | ;; no inputs; bzip2 is not supported, since not compiled with BZ_NO_STDIO | |
1561 | (arguments | |
1562 | `(#:phases (modify-phases %standard-phases | |
1563 | (delete 'configure) | |
190376a1 MW |
1564 | (add-after 'unpack 'fortify |
1565 | (lambda _ | |
1566 | ;; Mitigate CVE-2018-1000035, an exploitable buffer overflow. | |
1567 | ;; This environment variable is recommended in 'unix/Makefile' | |
1568 | ;; for passing flags to the C compiler. | |
1569 | (setenv "LOCAL_UNZIP" "-D_FORTIFY_SOURCE=1") | |
1570 | #t)) | |
148585c2 AI |
1571 | (replace 'build |
1572 | (lambda* (#:key make-flags #:allow-other-keys) | |
fa76696b MW |
1573 | (apply invoke "make" |
1574 | `("-j" ,(number->string | |
1575 | (parallel-job-count)) | |
1576 | ,@make-flags | |
1577 | "generic_gcc"))))) | |
148585c2 AI |
1578 | #:make-flags (list "-f" "unix/Makefile" |
1579 | (string-append "prefix=" %output) | |
1580 | (string-append "MANDIR=" %output "/share/man/man1")))) | |
1581 | (home-page "http://www.info-zip.org/UnZip.html") | |
1582 | (synopsis "Decompression and file extraction utility") | |
1583 | (description | |
1584 | "UnZip is an extraction utility for archives compressed in .zip format, | |
1585 | also called \"zipfiles\". | |
1586 | ||
1587 | UnZip lists, tests, or extracts files from a .zip archive. The default | |
1588 | behaviour (with no options) is to extract into the current directory, and | |
1589 | subdirectories below it, all files from the specified zipfile. UnZip | |
1590 | recreates the stored directory structure by default.") | |
1591 | (license (license:non-copyleft "file://LICENSE" | |
1592 | "See LICENSE in the distribution.")))) | |
1593 | ||
1594 | (define-public zziplib | |
1595 | (package | |
1596 | (name "zziplib") | |
3f986ff6 MB |
1597 | (version "0.13.69") |
1598 | (home-page "https://github.com/gdraheim/zziplib") | |
d0a52e65 MB |
1599 | (source (origin |
1600 | (method git-fetch) | |
1601 | (uri (git-reference (url home-page) | |
1602 | (commit (string-append "v" version)))) | |
1603 | (file-name (git-file-name name version)) | |
e6bd8b5e | 1604 | (patches (search-patches "zziplib-CVE-2018-16548.patch")) |
d0a52e65 MB |
1605 | (sha256 |
1606 | (base32 | |
1607 | "0fbk9k7ryas2wh2ykwkvm1pbi40i88rfvc3dydh9xyd7w2jcki92")))) | |
148585c2 | 1608 | (build-system gnu-build-system) |
d0a52e65 MB |
1609 | (arguments |
1610 | `(#:phases (modify-phases %standard-phases | |
1611 | (add-before 'check 'make-files-writable | |
1612 | (lambda _ | |
1613 | (for-each make-file-writable | |
1614 | (find-files "test" #:directories? #t)) | |
b0dc2454 MB |
1615 | #t))) |
1616 | ||
1617 | ;; XXX: The default test target attempts to download external resources and | |
1618 | ;; fails without error: <https://github.com/gdraheim/zziplib/issues/53>. | |
1619 | ;; To prevent confusing log messages, just run a simple zip test that works. | |
1620 | #:test-target "check-readme")) | |
148585c2 AI |
1621 | (inputs |
1622 | `(("zlib" ,zlib))) | |
1623 | (native-inputs `(("perl" ,perl) ; for the documentation | |
1624 | ("pkg-config" ,pkg-config) | |
1625 | ;; for the documentation; Python 3 not supported, | |
1626 | ;; http://forums.gentoo.org/viewtopic-t-863161-start-0.html | |
1627 | ("python" ,python-2) | |
1628 | ("zip" ,zip))) ; to create test files | |
148585c2 AI |
1629 | (synopsis "Library for accessing zip files") |
1630 | (description | |
1631 | "ZZipLib is a library based on zlib for accessing zip files.") | |
0d729c5b MB |
1632 | ;; zziplib is dual licensed under LGPL2.0+ and MPL1.1. Some example source |
1633 | ;; files carry the Zlib license; see "docs/copying.html" for details. | |
1634 | (license (list license:lgpl2.0+ license:mpl1.1)))) | |
148585c2 | 1635 | |
06de4aaf TF |
1636 | (define-public libzip |
1637 | (package | |
1638 | (name "libzip") | |
7e6df0e9 | 1639 | (version "1.7.3") |
06de4aaf TF |
1640 | (source (origin |
1641 | (method url-fetch) | |
1642 | (uri (string-append | |
66fea0c4 | 1643 | "https://libzip.org/download/libzip-" version ".tar.xz")) |
06de4aaf TF |
1644 | (sha256 |
1645 | (base32 | |
7e6df0e9 | 1646 | "0ck1dk7zn5qzpgxklg0r26nfsf04xb6c46gsig060hkvvgzp6156")))) |
06de4aaf TF |
1647 | (native-inputs |
1648 | `(("perl" ,perl))) | |
1649 | (inputs | |
a9b15d4c | 1650 | `(("gnutls" ,gnutls) |
dcc3f215 | 1651 | ("liblzma" ,xz) |
a9b15d4c BH |
1652 | ("openssl" ,openssl) |
1653 | ("zlib" ,zlib))) | |
80486319 | 1654 | (build-system cmake-build-system) |
8d6c7456 | 1655 | (home-page "https://libzip.org") |
06de4aaf TF |
1656 | (synopsis "C library for reading, creating, and modifying zip archives") |
1657 | (description "Libzip is a C library for reading, creating, and modifying | |
1658 | zip archives. Files can be added from data buffers, files, or compressed data | |
1659 | copied directly from other zip archives. Changes made without closing the | |
1660 | archive can be reverted.") | |
1661 | (license license:bsd-3))) | |
ef5c40aa SR |
1662 | |
1663 | (define-public atool | |
1664 | (package | |
1665 | (name "atool") | |
1666 | (version "0.39.0") | |
1667 | (source | |
1668 | (origin | |
1669 | (method url-fetch) | |
1670 | (uri (string-append "http://savannah.nongnu.org/download/atool/atool-" | |
1671 | version ".tar.gz")) | |
1672 | (sha256 | |
1673 | (base32 | |
1674 | "0fvhzip2v08jgnlfpyj6rapan39xlsl1ksgq4lp8gfsai2ah1xma")))) | |
1675 | (build-system gnu-build-system) | |
1676 | (arguments | |
1677 | `(#:phases | |
1678 | (modify-phases %standard-phases | |
1679 | (add-after 'unpack 'embed-absolute-file-name | |
1680 | (lambda* (#:key inputs #:allow-other-keys) | |
1681 | (substitute* "atool" | |
1682 | (("(^\\$::cfg_path_file.*= )'file'" _ pre) | |
1683 | (string-append pre "'" (assoc-ref inputs "file") | |
1684 | "/bin/file'"))) | |
1685 | #t))))) | |
1686 | (inputs | |
1687 | `(("perl" ,perl) | |
1688 | ("file" ,file))) | |
340978d7 | 1689 | (home-page "https://www.nongnu.org/atool/") |
ef5c40aa SR |
1690 | (synopsis "Universal tool to manage file archives of various types") |
1691 | (description "The main command is @command{aunpack} which extracts files | |
1692 | from an archive. The other commands provided are @command{apack} (to create | |
1693 | archives), @command{als} (to list files in archives), and @command{acat} (to | |
1694 | extract files to standard out). As @command{atool} invokes external programs | |
1695 | to handle the archives, not all commands may be supported for a certain type | |
1696 | of archives.") | |
1697 | (license license:gpl2+))) | |
b44ecca6 | 1698 | |
34e8cf22 TGR |
1699 | (define-public lunzip |
1700 | (package | |
1701 | (name "lunzip") | |
9f4f085f | 1702 | (version "1.11") |
34e8cf22 TGR |
1703 | (source |
1704 | (origin | |
1705 | (method url-fetch) | |
a28cd477 TGR |
1706 | (uri (string-append "mirror://savannah/lzip/lunzip/" |
1707 | "lunzip-" version ".tar.gz")) | |
34e8cf22 | 1708 | (sha256 |
9f4f085f | 1709 | (base32 "19zq3gmlbia2krq4k4zs1j0xjdv7nsdzqvfb0pyca5n53h2mzb91")))) |
34e8cf22 TGR |
1710 | (build-system gnu-build-system) |
1711 | (arguments | |
1712 | `(#:configure-flags | |
cb3ca320 | 1713 | (list ,(string-append "CC=" (cc-for-target))))) |
340978d7 | 1714 | (home-page "https://www.nongnu.org/lzip/lunzip.html") |
34e8cf22 TGR |
1715 | (synopsis "Small, stand-alone lzip decompressor") |
1716 | (description | |
1717 | "Lunzip is a decompressor for files in the lzip compression format (.lz), | |
1718 | written as a single small C tool with no dependencies. This makes it | |
1719 | well-suited to embedded and other systems without a C++ compiler, or for use in | |
1720 | applications such as software installers that need only to decompress files, | |
1721 | not compress them. | |
1722 | Lunzip is intended to be fully compatible with the regular lzip package.") | |
1723 | (license (list license:bsd-2 ; carg_parser.[ch] | |
1724 | license:gpl2+)))) ; everything else | |
5dca4c76 TGR |
1725 | |
1726 | (define-public clzip | |
1727 | (package | |
1728 | (name "clzip") | |
11b1c71d | 1729 | (version "1.11") |
5dca4c76 TGR |
1730 | (source |
1731 | (origin | |
1732 | (method url-fetch) | |
39e5d3b6 TGR |
1733 | (uri (string-append "mirror://savannah/lzip/clzip/" |
1734 | "clzip-" version ".tar.gz")) | |
5dca4c76 | 1735 | (sha256 |
11b1c71d | 1736 | (base32 "1h14dmc9fi10gcdpdpbgq1bwvcxvivppilj64pf720x8mw915mfr")))) |
5dca4c76 TGR |
1737 | (build-system gnu-build-system) |
1738 | (arguments | |
1739 | `(#:configure-flags | |
cb056c40 | 1740 | (list ,(string-append "CC=" (cc-for-target))))) |
340978d7 | 1741 | (home-page "https://www.nongnu.org/lzip/clzip.html") |
5dca4c76 TGR |
1742 | (synopsis "Small, stand-alone lzip compressor and decompressor") |
1743 | (description | |
1744 | "Clzip is a compressor and decompressor for files in the lzip compression | |
1745 | format (.lz), written as a single small C tool with no dependencies. This makes | |
1746 | it well-suited to embedded and other systems without a C++ compiler, or for use | |
1747 | in other applications like package managers. | |
1748 | Clzip is intended to be fully compatible with the regular lzip package.") | |
1749 | (license (list license:bsd-2 ; carg_parser.[ch], lzd in clzip.texi | |
1750 | license:gpl2+)))) | |
2e3b1a92 TGR |
1751 | |
1752 | (define-public lzlib | |
1753 | (package | |
1754 | (name "lzlib") | |
29904223 | 1755 | (version "1.11") |
2e3b1a92 TGR |
1756 | (source |
1757 | (origin | |
1758 | (method url-fetch) | |
76b2f084 TGR |
1759 | (uri (string-append "mirror://savannah/lzip/lzlib/" |
1760 | "lzlib-" version ".tar.gz")) | |
2e3b1a92 | 1761 | (sha256 |
29904223 | 1762 | (base32 "0djdj4sg33rzi4k84cygvnp09bfsv6i8wy2k7i67rayib63myp3c")))) |
2e3b1a92 | 1763 | (build-system gnu-build-system) |
2e3b1a92 TGR |
1764 | (arguments |
1765 | `(#:configure-flags | |
31dcc272 | 1766 | (list (string-append "CC=" ,(cc-for-target)) |
6c519722 | 1767 | "--disable-static" |
2e3b1a92 | 1768 | "--enable-shared"))) ; only static (.a) is built by default |
340978d7 | 1769 | (home-page "https://www.nongnu.org/lzip/lzlib.html") |
2e3b1a92 TGR |
1770 | (synopsis "Lzip data compression C library") |
1771 | (description | |
1772 | "Lzlib is a C library for in-memory LZMA compression and decompression in | |
1773 | the lzip format. It supports integrity checking of the decompressed data, and | |
1774 | all functions are thread-safe. The library should never crash, even in case of | |
1775 | corrupted input.") | |
1776 | (license (list license:bsd-2 ; the library itself | |
1777 | license:gpl2+)))) ; main.c (i.e. minilzip used by tests) | |
8c4ca853 TGR |
1778 | |
1779 | (define-public plzip | |
1780 | (package | |
1781 | (name "plzip") | |
ff0e1eed | 1782 | (version "1.8") |
8c4ca853 TGR |
1783 | (source |
1784 | (origin | |
1785 | (method url-fetch) | |
894669a7 TGR |
1786 | (uri (string-append "mirror://savannah/lzip/plzip/" |
1787 | "plzip-" version ".tar.gz")) | |
8c4ca853 | 1788 | (sha256 |
ff0e1eed | 1789 | (base32 "04indil809qgfmz776imb3dnhkysh7zk28jcv3mw0ahl2lyaxbzd")))) |
8c4ca853 TGR |
1790 | (build-system gnu-build-system) |
1791 | (inputs | |
1792 | `(("lzlib" ,lzlib))) | |
340978d7 | 1793 | (home-page "https://www.nongnu.org/lzip/plzip.html") |
8c4ca853 TGR |
1794 | (synopsis "Parallel lossless data compressor for the lzip format") |
1795 | (description | |
1796 | "Plzip is a massively parallel (multi-threaded) lossless data compressor | |
1797 | and decompressor that uses the lzip file format (.lz). Files produced by plzip | |
1798 | are fully compatible with lzip and can be rescued with lziprecover. | |
1799 | On multiprocessor machines, plzip can compress and decompress large files much | |
1800 | faster than lzip, at the cost of a slightly reduced compression ratio (0.4% to | |
1801 | 2%). The number of usable threads is limited by file size: on files of only a | |
1802 | few MiB, plzip is no faster than lzip. | |
1803 | Files that were compressed with regular lzip will also not be decompressed | |
1804 | faster by plzip, unless the @code{-b} option was used: lzip usually produces | |
1805 | single-member files which can't be decompressed in parallel.") | |
1806 | (license (list license:bsd-2 ; arg_parser.{cc,h} | |
1807 | license:gpl2+)))) ; everything else | |
e294c05e RH |
1808 | |
1809 | (define-public innoextract | |
1810 | (package | |
1811 | (name "innoextract") | |
73996c02 | 1812 | (version "1.9") |
e294c05e RH |
1813 | (source |
1814 | (origin | |
1815 | (method url-fetch) | |
73996c02 TGR |
1816 | (uri (string-append "https://constexpr.org/innoextract/files/" |
1817 | "innoextract-" version "/" | |
ff983864 | 1818 | "/innoextract-" version ".tar.gz")) |
e294c05e | 1819 | (sha256 |
73996c02 | 1820 | (base32 "09l1z1nbl6ijqqwszdwch9mqr54qb7df0wp2sd77v17dq6gsci33")))) |
e294c05e RH |
1821 | (build-system cmake-build-system) |
1822 | (arguments | |
73996c02 | 1823 | `(#:tests? #f)) |
4cb9b726 | 1824 | (inputs `(("boost" ,boost) |
e294c05e RH |
1825 | ("libiconv" ,libiconv) |
1826 | ("xz" ,xz))) | |
1827 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1828 | (home-page "https://constexpr.org/innoextract/") | |
1829 | (synopsis "Tool for extracting Inno Setup installers") | |
1830 | (description "innoextract allows extracting Inno Setup installers under | |
1831 | non-Windows systems without running the actual installer using wine.") | |
1832 | (license license:zlib))) | |
2ed0ef2f LF |
1833 | |
1834 | (define-public google-brotli | |
1835 | (package | |
1836 | (name "google-brotli") | |
598c2bbc | 1837 | (version "1.0.7") |
fc82c175 TGR |
1838 | (source |
1839 | (origin | |
1840 | (method git-fetch) | |
1841 | (uri (git-reference | |
b0e7b699 | 1842 | (url "https://github.com/google/brotli") |
fc82c175 TGR |
1843 | (commit (string-append "v" version)))) |
1844 | (file-name (git-file-name name version)) | |
1845 | (sha256 | |
598c2bbc | 1846 | (base32 "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw")))) |
2ed0ef2f LF |
1847 | (build-system cmake-build-system) |
1848 | (arguments | |
1849 | `(#:phases | |
1850 | (modify-phases %standard-phases | |
1851 | (add-after 'install 'rename-static-libraries | |
1852 | ;; The build tools put a 'static' suffix on the static libraries, but | |
1853 | ;; other applications don't know how to find these. | |
1854 | (lambda* (#:key outputs #:allow-other-keys) | |
1855 | (let ((lib (string-append (assoc-ref %outputs "out") "/lib/"))) | |
1856 | (rename-file (string-append lib "libbrotlicommon-static.a") | |
1857 | (string-append lib "libbrotlicommon.a")) | |
1858 | (rename-file (string-append lib "libbrotlidec-static.a") | |
1859 | (string-append lib "libbrotlidec.a")) | |
1860 | (rename-file (string-append lib "libbrotlienc-static.a") | |
1861 | (string-append lib "libbrotlienc.a")) | |
1862 | #t)))) | |
1863 | #:configure-flags | |
1864 | (list ;; Defaults to "lib64" on 64-bit archs. | |
1865 | (string-append "-DCMAKE_INSTALL_LIBDIR=" | |
1866 | (assoc-ref %outputs "out") "/lib")))) | |
1867 | (home-page "https://github.com/google/brotli") | |
1868 | (synopsis "General-purpose lossless compression") | |
1869 | (description "This package provides the reference implementation of Brotli, | |
1870 | a generic-purpose lossless compression algorithm that compresses data using a | |
1871 | combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd | |
1872 | order context modeling, with a compression ratio comparable to the best | |
1873 | currently available general-purpose compression methods. It is similar in speed | |
1874 | with @code{deflate} but offers more dense compression. | |
1875 | ||
1876 | The specification of the Brotli Compressed Data Format is defined in RFC 7932.") | |
1877 | (license license:expat))) | |
71987177 | 1878 | |
83ac7cb4 LDB |
1879 | (define-public brotli |
1880 | ;; We used to provide an older version under the name "brotli". | |
1881 | (deprecated-package "brotli" google-brotli)) | |
1882 | ||
d2b237d0 AI |
1883 | (define-public python-google-brotli |
1884 | (package | |
1885 | (inherit google-brotli) | |
1886 | (name "python-google-brotli") | |
1887 | (build-system python-build-system) | |
1888 | (arguments '()) | |
1889 | (synopsis "Python interface to google-brotli") | |
1890 | (description "@code{python-google-brotli} provides a Python interface to | |
1891 | @code{google-brotli}, an implementation of the Brotli lossless compression | |
1892 | algorithm."))) | |
1893 | ||
71987177 PN |
1894 | (define-public ucl |
1895 | (package | |
1896 | (name "ucl") | |
1897 | (version "1.03") | |
1898 | (source (origin | |
1899 | (method url-fetch) | |
01c8b90b | 1900 | (uri (string-append "https://www.oberhumer.com/opensource/" |
71987177 PN |
1901 | name "/download/" name "-" version ".tar.gz")) |
1902 | (sha256 | |
1903 | (base32 | |
1904 | "0j036lkwsxvm15gr29n8wn07cqq79dswjs9k54939ms5zngjjrdq")))) | |
1905 | (build-system gnu-build-system) | |
7349f926 MB |
1906 | (arguments |
1907 | `(;; UCL 1.03 fails to build with newer C standards. | |
41c27444 MB |
1908 | #:configure-flags '("CFLAGS=-std=gnu90" |
1909 | "--enable-shared" "--disable-static"))) | |
01c8b90b | 1910 | (home-page "https://www.oberhumer.com/opensource/ucl/") |
71987177 PN |
1911 | (synopsis "Portable lossless data compression library") |
1912 | (description "UCL implements a number of compression algorithms that | |
1913 | achieve an excellent compression ratio while allowing fast decompression. | |
1914 | Decompression requires no additional memory. | |
1915 | ||
1916 | Compared to LZO, the UCL algorithms achieve a better compression ratio but | |
1917 | decompression is a little bit slower.") | |
1918 | (license license:gpl2+))) | |
5735256d PN |
1919 | |
1920 | (define-public upx | |
1921 | (package | |
1922 | (name "upx") | |
f5255ed3 | 1923 | (version "3.96") |
5735256d PN |
1924 | (source (origin |
1925 | (method url-fetch) | |
1926 | (uri (string-append "https://github.com/upx/upx/releases/download/v" | |
de5bc83c | 1927 | version "/upx-" version "-src.tar.xz")) |
5735256d PN |
1928 | (sha256 |
1929 | (base32 | |
f5255ed3 | 1930 | "051pk5jk8fcfg5mpgzj43z5p4cn7jy5jbyshyn78dwjqr7slsxs7")))) |
5735256d | 1931 | (build-system gnu-build-system) |
d8963031 MB |
1932 | (native-inputs |
1933 | `(("perl" ,perl))) | |
1934 | (inputs | |
1935 | `(("ucl" ,ucl) | |
1936 | ("zlib" ,zlib))) | |
5735256d PN |
1937 | (arguments |
1938 | `(#:make-flags | |
f5255ed3 | 1939 | (list "all") |
5735256d PN |
1940 | #:phases |
1941 | (modify-phases %standard-phases | |
7046106e TGR |
1942 | (delete 'configure) ; no configure script |
1943 | (delete 'check) ; no test suite | |
5735256d PN |
1944 | (add-before 'build 'patch-exec-bin-sh |
1945 | (lambda _ | |
7046106e TGR |
1946 | (substitute* (list "Makefile" |
1947 | "src/Makefile") | |
5735256d PN |
1948 | (("/bin/sh") (which "sh"))) |
1949 | #t)) | |
7046106e | 1950 | (replace 'install |
5735256d PN |
1951 | (lambda* (#:key outputs #:allow-other-keys) |
1952 | (let* ((out (assoc-ref outputs "out")) | |
7046106e | 1953 | (bin (string-append out "/bin"))) |
5735256d PN |
1954 | (mkdir-p bin) |
1955 | (copy-file "src/upx.out" (string-append bin "/upx"))) | |
7046106e | 1956 | #t))))) |
5735256d PN |
1957 | (home-page "https://upx.github.io/") |
1958 | (synopsis "Compression tool for executables") | |
1959 | (description | |
1960 | "The Ultimate Packer for eXecutables (UPX) is an executable file | |
1961 | compressor. UPX typically reduces the file size of programs and shared | |
1962 | libraries by around 50%--70%, thus reducing disk space, network load times, | |
1963 | download times, and other distribution and storage costs.") | |
1964 | (license license:gpl2+))) | |
09debcf5 NG |
1965 | |
1966 | (define-public quazip | |
1967 | (package | |
1968 | (name "quazip") | |
d84ddbb9 | 1969 | (version "0.9.1") |
09debcf5 NG |
1970 | (source (origin |
1971 | (method git-fetch) | |
1972 | (uri (git-reference | |
b0e7b699 | 1973 | (url "https://github.com/stachenov/quazip") |
09debcf5 NG |
1974 | (commit (string-append "v" version)))) |
1975 | (file-name (git-file-name name version)) | |
1976 | (sha256 | |
1977 | (base32 | |
d84ddbb9 | 1978 | "11icgwv2xyxhd1hm1add51xv54zwkcqkg85d1xqlgiigvbm196iq")))) |
09debcf5 NG |
1979 | (build-system cmake-build-system) |
1980 | (arguments | |
1981 | `(#:tests? #f)) ;no test | |
1982 | (native-inputs | |
1983 | `(("doxygen" ,doxygen))) | |
1984 | (inputs | |
1985 | `(("qtbase" ,qtbase) | |
1986 | ("zlib" ,zlib))) | |
1987 | (home-page "https://stachenov.github.io/quazip/index.html") | |
1988 | (synopsis "Qt/C++ wrapper for Minizip") | |
1989 | (description "QuaZIP is a simple C++ wrapper over Gilles Vollant's | |
1990 | ZIP/UNZIP package that can be used to access ZIP archives. It uses | |
1991 | Trolltech's Qt toolkit. | |
1992 | ||
1993 | QuaZIP allows you to access files inside ZIP archives using QIODevice | |
1994 | API, and that means that you can also use QTextStream, QDataStream or | |
1995 | whatever you would like to use on your zipped files. | |
1996 | ||
1997 | QuaZIP provides complete abstraction of the ZIP/UNZIP API, for both | |
1998 | reading from and writing to ZIP archives. ") | |
1999 | ;; Project is distributed under LGPL, but "quazip/z*" "quazip/unzip.*" are | |
2000 | ;; distributed under zlib terms. | |
2001 | (license (list license:lgpl2.1+ license:zlib)))) | |
f5111b4d TGR |
2002 | |
2003 | (define-public zutils | |
2004 | (package | |
2005 | (name "zutils") | |
2f650473 | 2006 | (version "1.9") |
f5111b4d TGR |
2007 | (source |
2008 | (origin | |
2009 | (method url-fetch) | |
2010 | (uri (string-append "mirror://savannah/zutils/zutils-" version ".tar.lz")) | |
2011 | (sha256 | |
2f650473 | 2012 | (base32 "0y2wm8wqr1wi1b1fv45dn50njv4q81p6ifx0279ji1bq56qkrn2r")))) |
f5111b4d TGR |
2013 | (build-system gnu-build-system) |
2014 | (arguments | |
2015 | `(#:configure-flags | |
2016 | (list "--sysconfdir=/etc") | |
2017 | #:phases | |
2018 | (modify-phases %standard-phases | |
1de23e55 | 2019 | (add-before 'check 'disable-failing-tests |
2f650473 | 2020 | ;; XXX https://lists.nongnu.org/archive/html/zutils-bug/2020-07/msg00005.html |
1de23e55 TGR |
2021 | (lambda _ |
2022 | (substitute* "testsuite/check.sh" | |
2023 | (("\"\\$\\{ZGREP\\}\" -N -L \"GNU\"") "true") | |
2024 | (("\"\\$\\{ZGREP\\}\" -N -L \"nx_pattern\"") "false")) | |
2025 | #t)) | |
f5111b4d TGR |
2026 | (replace 'install |
2027 | (lambda* (#:key make-flags outputs #:allow-other-keys) | |
2028 | (apply invoke "make" "install" | |
2029 | (string-append "sysconfdir=" (assoc-ref outputs "out") | |
2030 | "/etc") | |
2031 | make-flags)))))) | |
2032 | (native-inputs | |
2033 | ;; Needed to extract the source tarball and run the test suite. | |
2034 | `(("lzip" ,lzip))) | |
f5111b4d TGR |
2035 | (home-page "https://www.nongnu.org/zutils/zutils.html") |
2036 | (synopsis "Utilities that transparently operate on compressed files") | |
2037 | (description | |
2038 | "Zutils is a collection of utilities able to process any combination of | |
2039 | compressed and uncompressed files transparently. If any given file, including | |
2040 | standard input, is compressed, its decompressed content is used instead. | |
2041 | ||
2042 | @command{zcat}, @command{zcmp}, @command{zdiff}, and @command{zgrep} are | |
2043 | improved replacements for the shell scripts provided by GNU gzip. | |
2044 | @command{ztest} tests the integrity of supported compressed files. | |
2045 | @command{zupdate} recompresses files with lzip, similar to gzip's | |
2046 | @command{znew}. | |
2047 | ||
2048 | Supported compression formats are bzip2, gzip, lzip, and xz. Zutils uses | |
2049 | external compressors: the compressor to be used for each format is configurable | |
2050 | at run time, and must be installed separately.") | |
2051 | (license (list license:bsd-2 ; arg_parser.{cc,h} | |
2052 | license:gpl2+)))) ; the rest | |
8ff5c735 PN |
2053 | |
2054 | (define-public makeself-safeextract | |
2055 | (let ((commit "1a95e121fa8e3c02d307ae37b9b7834e616c3683")) | |
2056 | (package | |
2057 | (name "makeself-safeextract") | |
2058 | (version (git-version "0.0.0" "1" commit)) | |
2059 | (home-page "https://github.com/ssokolow/makeself_safeextract") | |
2060 | (source | |
2061 | (origin | |
2062 | (method git-fetch) | |
2063 | (uri (git-reference | |
2064 | (url home-page) | |
2065 | (commit commit))) | |
2066 | (file-name (git-file-name name version)) | |
2067 | (sha256 | |
2068 | (base32 | |
2069 | "1anlinaj9lvfi8bn00wp11vzqq0f9sig4fm9yrspisx31v0z4a2c")))) | |
2070 | (build-system trivial-build-system) | |
2071 | (inputs | |
2072 | `(("python" ,python-2) | |
2073 | ("p7zip" ,p7zip) | |
2074 | ("unzip" ,unzip))) | |
2075 | (arguments | |
2076 | `(#:modules ((guix build utils)) | |
2077 | #:builder | |
2078 | (begin | |
2079 | (use-modules (guix build utils)) | |
2080 | (let* ((name "makeself_safeextract") | |
2081 | (source (string-append (assoc-ref %build-inputs "source") | |
2082 | "/" name ".py")) | |
2083 | (bin (string-append (assoc-ref %outputs "out") "/bin")) | |
2084 | (target (string-append bin "/" name)) | |
2085 | (python (string-append (assoc-ref %build-inputs "python") "/bin")) | |
2086 | (7z (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z")) | |
2087 | (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip"))) | |
2088 | (setenv "PATH" (string-append (getenv "PATH") ":" python)) | |
2089 | (mkdir-p bin) | |
2090 | (copy-file source target) | |
2091 | (substitute* target | |
2092 | (("'7z'") (format #f "'~a'" 7z)) | |
2093 | (("'unzip'") (format #f "'~a'" unzip))) | |
2094 | (patch-shebang target))))) | |
2095 | (synopsis "Extract makeself and mojo archives without running untrusted code") | |
2096 | (description "This package provides a script to unpack self-extracting | |
2097 | archives generated by @command{makeself} or @command{mojo} without running the | |
2098 | possibly untrusted extraction shell script.") | |
2099 | (license license:gpl3+)))) | |
9720104c JN |
2100 | |
2101 | (define-public ncompress | |
2102 | (package | |
2103 | (name "ncompress") | |
f38eabe9 | 2104 | (version "4.2.4.6") |
9720104c JN |
2105 | (source (origin |
2106 | (method git-fetch) | |
2107 | (uri (git-reference | |
2108 | (url "https://github.com/vapier/ncompress") | |
2109 | (commit (string-append "v" version)))) | |
2110 | (patches (search-patches "ncompress-fix-softlinks.patch")) | |
2111 | (file-name (string-append name "-" version ".tar.gz")) | |
2112 | (sha256 | |
2113 | (base32 | |
f38eabe9 | 2114 | "1a4yir1ilafz0nzxdwigj204j4yy2zljbc501nsaqqm3dxdap8zn")))) |
9720104c JN |
2115 | (arguments |
2116 | '(#:make-flags (list "CC=gcc" | |
2117 | (string-append "BINDIR=" %output "/bin") | |
2118 | (string-append "MANDIR=" %output "/share/man/man1")) | |
2119 | #:phases (modify-phases %standard-phases | |
2120 | (delete 'configure)))) | |
2121 | (build-system gnu-build-system) | |
2122 | (home-page "https://github.com/vapier/ncompress/") | |
2123 | (synopsis "Original Lempel-Ziv compress/uncompress programs") | |
2124 | (description "(N)compress provides the original compress and uncompress | |
2125 | programs that used to be the de facto UNIX standard for compressing and | |
2126 | uncompressing files. These programs implement a fast, simple Lempel-Ziv (LZW) | |
2127 | file compression algorithm.") | |
2128 | (license license:gpl2+))) | |
0745e28d RG |
2129 | |
2130 | (define-public xarchiver | |
2131 | (package | |
2132 | (name "xarchiver") | |
ddde8a07 | 2133 | (version "0.5.4.15") |
0745e28d RG |
2134 | (source |
2135 | (origin | |
2136 | (method git-fetch) | |
2137 | (uri (git-reference | |
b0e7b699 | 2138 | (url "https://github.com/ib/xarchiver") |
0745e28d RG |
2139 | (commit version))) |
2140 | (file-name (git-file-name name version)) | |
2141 | (sha256 | |
ddde8a07 | 2142 | (base32 "0a3y54r5zp2c0cqm77r07qrl1vh200wvqmbhm35diy22fvkq5mwc")))) |
0745e28d RG |
2143 | (build-system glib-or-gtk-build-system) |
2144 | (native-inputs | |
2145 | `(("gettext" ,gettext-minimal) | |
2146 | ("intltool" ,intltool) | |
2147 | ("libxslt" ,libxslt) | |
2148 | ("pkg-config" ,pkg-config))) | |
2149 | (inputs | |
ddde8a07 | 2150 | `(("adwaita-icon-theme" ,adwaita-icon-theme) ; hard-coded theme |
0745e28d RG |
2151 | ("gtk+" ,gtk+))) |
2152 | (home-page "https://github.com/ib/xarchiver") | |
2153 | (synopsis "Graphical front-end for archive operations") | |
2154 | (description "Xarchiver is a front-end to various command line archiving | |
2155 | tools. It uses GTK+ tool-kit and is designed to be desktop-environment | |
2156 | independent. Supported formats are 7z, ARJ, bzip2, gzip, LHA, lzma, lzop, | |
2157 | RAR, RPM, DEB, tar, and ZIP. It cannot perform functions for archives, whose | |
2158 | archiver is not installed.") | |
2159 | (license license:gpl2+))) | |
910bf1f7 LDB |
2160 | |
2161 | (define-public tarsplitter | |
2162 | (package | |
2163 | (name "tarsplitter") | |
2164 | (version "2.2.0") | |
2165 | (source (origin | |
2166 | (method git-fetch) | |
2167 | (uri (git-reference | |
b0e7b699 | 2168 | (url "https://github.com/AQUAOSOTech/tarsplitter") |
910bf1f7 LDB |
2169 | (commit (string-append "v" version)))) |
2170 | (file-name (git-file-name name version)) | |
2171 | (sha256 | |
2172 | (base32 | |
2173 | "17qkg95r97kcrs17b0mcqswx99280ni47j5yx8xa7nl3bdhm6325")))) | |
2174 | (build-system go-build-system) | |
2175 | (arguments | |
2176 | `(#:import-path "github.com/AQUAOSOTech/tarsplitter" | |
2177 | #:install-source? #f | |
2178 | #:phases | |
2179 | (modify-phases %standard-phases | |
2180 | (add-after 'install 'install-documentation | |
2181 | (lambda* (#:key import-path outputs #:allow-other-keys) | |
2182 | (let* ((source (string-append "src/" import-path)) | |
2183 | (out (assoc-ref outputs "out")) | |
2184 | (doc (string-append out "/share/doc/" ,name "-" ,version))) | |
2185 | (with-directory-excursion source | |
2186 | (install-file "README.md" doc)) | |
2187 | #t)))))) | |
2188 | (home-page "https://github.com/AQUAOSOTech/tarsplitter") | |
2189 | (synopsis "Multithreaded tar utility") | |
2190 | (description | |
bb6d9e26 | 2191 | "Archive huge numbers of files, or split massive tar archives into smaller |
910bf1f7 LDB |
2192 | chunks.") |
2193 | (license license:expat))) | |
9a2fcb63 RW |
2194 | |
2195 | (define-public c-blosc | |
2196 | (package | |
2197 | (name "c-blosc") | |
2198 | (version "1.18.1") | |
2199 | (source (origin | |
2200 | (method git-fetch) | |
2201 | (uri (git-reference | |
b0e7b699 | 2202 | (url "https://github.com/Blosc/c-blosc") |
9a2fcb63 RW |
2203 | (commit (string-append "v" version)))) |
2204 | (file-name (git-file-name name version)) | |
2205 | (sha256 | |
2206 | (base32 | |
2207 | "1ywq8j70149859vvs19wgjq89d6xsvvmvm2n1dmkzpchxgrvnw70")))) | |
2208 | (build-system cmake-build-system) | |
2209 | (home-page "https://blosc.org") | |
2210 | (synopsis "Blocking, shuffling and lossless compression library") | |
2211 | (description | |
2212 | "Blosc is a high performance compressor optimized for binary data. It has | |
2213 | been designed to transmit data to the processor cache faster than the | |
2214 | traditional, non-compressed, direct memory fetch approach via a | |
2215 | @code{memcpy()} system call. Blosc is meant not only to reduce the size of | |
2216 | large datasets on-disk or in-memory, but also to accelerate memory-bound | |
2217 | computations.") | |
2218 | ;; Blosc itself is released under BSD-3 but it incorporates code under | |
2219 | ;; other non-copyleft licenses. | |
2220 | (license license:bsd-3))) | |
3480ceb1 KK |
2221 | |
2222 | (define-public ecm | |
2223 | (package | |
2224 | (name "ecm") | |
2225 | (version "1.0.3") | |
2226 | (source (origin | |
2227 | (method git-fetch) | |
2228 | (uri (git-reference | |
2229 | (url "https://github.com/alucryd/ecm-tools") | |
2230 | (commit (string-append "v" version)))) | |
2231 | (file-name (git-file-name name version)) | |
2232 | (sha256 | |
2233 | (base32 | |
2234 | "1rvyx5gcy8lfklgj80szlz3312x45wzx0d9jsgwyvy8f6m4nnb0c")))) | |
2235 | (build-system gnu-build-system) | |
2236 | (arguments | |
2237 | `(#:tests? #f ; no check target | |
2238 | #:make-flags | |
1ca44ae3 MB |
2239 | (list (string-append "CC=" ,(cc-for-target)) |
2240 | (string-append "DESTDIR=" (assoc-ref %outputs "out"))) | |
3480ceb1 KK |
2241 | #:phases |
2242 | (modify-phases %standard-phases | |
2243 | (replace 'configure | |
2244 | (lambda _ | |
2245 | (substitute* "Makefile" | |
2246 | (("\\$\\(DESTDIR\\)/usr") "$(DESTDIR)")) | |
2247 | #t))))) | |
2248 | (home-page "https://github.com/alucryd/ecm-tools") | |
2249 | (synopsis "Error code modeler") | |
2250 | (description "ECM is a utility that converts ECM files, i.e., CD data files | |
2251 | with their error correction data losslessly rearranged for better compression, | |
2252 | to their original, binary CD format.") | |
2253 | (license license:gpl3+))) | |
ff43f128 GLV |
2254 | |
2255 | (define-public tarlz | |
2256 | (package | |
2257 | (name "tarlz") | |
2258 | (version "0.17") | |
2259 | (source | |
2260 | (origin | |
2261 | (method url-fetch) | |
2262 | (uri (string-append "mirror://savannah/lzip/tarlz/" | |
2263 | "tarlz-" version ".tar.lz")) | |
2264 | (sha256 | |
2265 | (base32 "0gpdm6z9pdr5bn31kxg73wm686hhpb5pdf5782pbl5a4xqqhqj90")))) | |
2266 | (build-system gnu-build-system) | |
2267 | (native-inputs | |
2268 | `(("lzip" ,lzip))) | |
2269 | (inputs | |
2270 | `(("lzlib" ,lzlib))) | |
2271 | (home-page "https://www.nongnu.org/lzip/tarlz.html") | |
2272 | (synopsis "Combination of the tar archiver and the lzip compressor") | |
2273 | (description | |
2274 | "Tarlz is a massively parallel (multi-threaded) combined implementation of | |
2275 | the tar archiver and the lzip compressor. Tarlz creates, lists, and extracts | |
2276 | archives in a simplified and safer variant of the POSIX pax format compressed | |
2277 | with lzip, keeping the alignment between tar members and lzip members. The | |
2278 | resulting multimember tar.lz archive is fully backward compatible with standard | |
2279 | tar tools like GNU tar, which treat it like any other tar.lz archive. Tarlz | |
2280 | can append files to the end of such compressed archives.") | |
2281 | (license license:gpl2+))) |