1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
6 ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
8 ;;; Copyright © 2015, 2017, 2018 Leo Famulari <leo@famulari.name>
9 ;;; Copyright © 2015 Jeff Mickey <j@codemac.net>
10 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
12 ;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
13 ;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
14 ;;; Copyright © 2016 David Craven <david@craven.ch>
15 ;;; Copyright © 2016, 2019 Kei Kebreau <kkebreau@posteo.net>
16 ;;; Copyright © 2016, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
17 ;;; Copyright © 2017 ng0 <ng0@n0.is>
18 ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
19 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
20 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
21 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
22 ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
23 ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
24 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
25 ;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
26 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages compression)
44 #:use-module ((guix licenses) #:prefix license:)
45 #:use-module (guix utils)
46 #:use-module (guix packages)
47 #:use-module (guix download)
48 #:use-module (guix git-download)
49 #:use-module (guix build-system cmake)
50 #:use-module (guix build-system gnu)
51 #:use-module (guix build-system trivial)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages assembly)
54 #:use-module (gnu packages autotools)
55 #:use-module (gnu packages backup)
56 #:use-module (gnu packages base)
57 #:use-module (gnu packages boost)
58 #:use-module (gnu packages check)
59 #:use-module (gnu packages curl)
60 #:use-module (gnu packages documentation)
61 #:use-module (gnu packages file)
62 #:use-module (gnu packages maths)
63 #:use-module (gnu packages perl)
64 #:use-module (gnu packages pkg-config)
65 #:use-module (gnu packages python)
66 #:use-module (gnu packages qt)
67 #:use-module (gnu packages tls)
68 #:use-module (gnu packages valgrind)
69 #:use-module (ice-9 match)
70 #:use-module ((srfi srfi-1) #:select (last)))
79 (uri (list (string-append "http://zlib.net/zlib-"
81 (string-append "mirror://sourceforge/libpng/zlib/"
82 version "/zlib-" version ".tar.gz")))
85 "18dighcs333gsvajvvgqp8l4cx7h1x7yx9gd5xacnk80spyykrf3"))))
86 (build-system gnu-build-system)
87 (outputs '("out" "static"))
90 (modify-phases %standard-phases
92 (lambda* (#:key outputs #:allow-other-keys)
93 ;; Zlib's home-made `configure' fails when passed
94 ;; extra flags like `--enable-fast-install', so we need to
95 ;; invoke it with just what it understand.
96 (let ((out (assoc-ref outputs "out")))
97 ;; 'configure' doesn't understand '--host'.
98 ,@(if (%current-target-system)
99 `((setenv "CHOST" ,(%current-target-system)))
101 (invoke "./configure"
102 (string-append "--prefix=" out)))))
103 (add-after 'install 'move-static-library
104 (lambda* (#:key outputs #:allow-other-keys)
105 (let ((out (assoc-ref outputs "out"))
106 (static (assoc-ref outputs "static")))
107 (with-directory-excursion (string-append out "/lib")
108 (install-file "libz.a" (string-append static "/lib"))
109 (delete-file "libz.a")
111 (home-page "https://zlib.net/")
112 (synopsis "Compression library")
114 "zlib is designed to be a free, general-purpose, legally unencumbered --
115 that is, not covered by any patents -- lossless data-compression library for
116 use on virtually any computer hardware and operating system. The zlib data
117 format is itself portable across platforms. Unlike the LZW compression method
118 used in Unix compress(1) and in the GIF image format, the compression method
119 currently used in zlib essentially never expands the data. (LZW can double or
120 triple the file size in extreme cases.) zlib's memory footprint is also
121 independent of the input data and can be reduced, if necessary, at some cost
123 (license license:zlib)))
125 (define-public minizip
128 (version (package-version zlib))
129 (source (package-source zlib))
130 (build-system gnu-build-system)
133 (modify-phases %standard-phases
134 (add-after 'unpack 'enter-source
135 (lambda _ (chdir "contrib/minizip") #t))
136 (add-after 'install 'remove-crypt-h
137 (lambda* (#:key outputs #:allow-other-keys)
138 ;; Remove <minizip/crypt.h> because it interferes with libc's
139 ;; <crypt.h> given that 'minizip.pc' says "-I…/include/minizip".
140 ;; Fedora does the same:
141 ;; <https://src.fedoraproject.org/rpms/zlib/c/4d2785ec3116947872f6f32dc4104e6d36d8a7a4?branch=master>.
142 (let ((out (assoc-ref outputs "out")))
143 (delete-file (string-append out "/include/minizip/crypt.h"))
146 `(("autoconf" ,autoconf)
147 ("automake" ,automake)
148 ("libtool" ,libtool)))
149 (propagated-inputs `(("zlib" ,zlib)))
150 (home-page (package-home-page zlib))
151 (synopsis "Zip Compression library")
153 "Minizip is a minimalistic library that supports compressing,
154 extracting and viewing ZIP archives. This version is extracted from
155 the @code{zlib} source.")
156 (license (package-license zlib))))
158 (define-public fastjar
164 (uri (string-append "mirror://savannah/fastjar/fastjar-"
168 "0iginbz2m15hcsa3x4y7v3mhk54gr1r7m3ghx0pg4n46vv2snmpi"))))
169 (build-system gnu-build-system)
170 (inputs `(("zlib" ,zlib)))
171 (home-page "https://savannah.nongnu.org/projects/fastjar")
172 (synopsis "Replacement for Sun's 'jar' utility")
174 "FastJar is an attempt to create a much faster replacement for Sun's
175 @code{jar} utility. Instead of being written in Java, FastJar is written in C.")
176 (license license:gpl2+)))
178 (define-public libtar
186 "ftp://ftp.feep.net/pub/software/libtar/libtar-"
189 "mirror://debian/pool/main/libt/libtar/libtar_"
190 version ".orig.tar.gz")))
193 "02cihzl77ia0dcz7z2cga2412vyhhs5pa2355q4wpwbyga2lrwjh"))
194 (patches (search-patches "libtar-CVE-2013-4420.patch"))))
195 (build-system gnu-build-system)
196 (arguments `(#:tests? #f)) ; no "check" target
198 `(("autoconf" ,autoconf)
199 ("automake" ,automake)
200 ("libtool" ,libtool)))
203 (synopsis "C library for manipulating POSIX tar files")
205 "libtar is a C library for manipulating POSIX tar files. It handles
206 adding and extracting files to/from a tar archive.")
207 (home-page "https://repo.or.cz/libtar.git")
208 (license license:bsd-3)))
216 (uri (string-append "mirror://gnu/gzip/gzip-"
220 "1h6p374d3j8d4cdfydzls021xa2yby8myc0h8d6m8bc7k6ncq9c4"))))
221 (build-system gnu-build-system)
222 (synopsis "General file (de)compression (using lzw)")
224 ;; FIXME: The test suite wants `less', and optionally Perl.
227 (modify-phases %standard-phases
228 (add-after 'unpack 'patch-for-glibc-2.28
230 ;; Adjust the bundled gnulib to work with glibc 2.28. See e.g.
231 ;; "m4-gnulib-libio.patch". This is a phase rather than patch
232 ;; or snippet to work around <https://bugs.gnu.org/32347>.
233 (substitute* (find-files "lib" "\\.c$")
234 (("#if defined _IO_ftrylockfile")
235 "#if defined _IO_EOF_SEEN"))
236 (substitute* "lib/stdio-impl.h"
237 (("^/\\* BSD stdio derived implementations")
238 (string-append "#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN\n"
239 "# define _IO_IN_BACKUP 0x100\n"
241 "/* BSD stdio derived implementations")))
243 (add-after 'unpack 'use-absolute-name-of-gzip
244 (lambda* (#:key outputs #:allow-other-keys)
245 (substitute* "gunzip.in"
247 (string-append "exec " (assoc-ref outputs "out")
251 "GNU Gzip provides data compression and decompression utilities; the
252 typical extension is \".gz\". Unlike the \"zip\" format, it compresses a single
253 file; as a result, it is often used in conjunction with \"tar\", resulting in
254 \".tar.gz\" or \".tgz\", etc.")
255 (license license:gpl3+)
256 (home-page "https://www.gnu.org/software/gzip/")))
264 ;; XXX The bzip.org domain was allowed to expire.
265 (uri (string-append "https://web.archive.org/web/20180624184806/"
266 "http://www.bzip.org/"
267 version "/bzip2-" version ".tar.gz"))
270 "1kfrc7f0ja9fdn6j1y6yir6li818npy6217hvr3wzmnmzhs8z152"))))
271 (build-system gnu-build-system)
273 `(#:modules ((guix build gnu-build-system)
278 (modify-phases %standard-phases
280 (lambda* (#:key target #:allow-other-keys)
281 (when ,(%current-target-system)
282 ;; Cross-compilation: use the cross tools.
283 (substitute* (find-files "." "Makefile")
285 (string-append "CC = " target "-gcc\n"))
287 (string-append "AR = " target "-ar\n"))
289 (string-append "RANLIB = " target "-ranlib\n"))
290 (("^all:(.*)test" _ prerequisites)
291 ;; Remove 'all' -> 'test' dependency.
292 (string-append "all:" prerequisites "\n"))))
294 (add-before 'build 'build-shared-lib
295 (lambda* (#:key inputs #:allow-other-keys)
296 (patch-makefile-SHELL "Makefile-libbz2_so")
297 (invoke "make" "-f" "Makefile-libbz2_so")))
298 (add-after 'install 'install-shared-lib
299 (lambda* (#:key outputs #:allow-other-keys)
300 ;; The Makefile above does not have an 'install' target, nor does
301 ;; it create all the (un)versioned symlinks, so we handle it here.
302 (let* ((out (assoc-ref outputs "out"))
303 (libdir (string-append out "/lib"))
305 ;; Locate the built library (e.g. "libbz2.so.1.0.6").
306 (lib (car (scandir "."
308 (and (string-prefix? soname file)
310 (stat:type (lstat file))))))))
311 (soversion (string-drop lib (+ 1 (string-length soname)))))
312 (install-file lib libdir)
313 (with-directory-excursion libdir
314 ;; Create symlinks libbz2.so.1 -> libbz2.so.1.0, etc.
315 (let loop ((base soname)
316 (numbers (string-split soversion #\.)))
317 (unless (null? numbers)
318 (let ((so-file (string-append base "." (car numbers))))
319 (symlink so-file base)
320 (loop so-file (cdr numbers))))))
322 (add-after 'install-shared-lib 'move-static-lib
323 (lambda* (#:key outputs #:allow-other-keys)
324 (let ((out (assoc-ref outputs "out"))
325 (static (assoc-ref outputs "static")))
326 (with-directory-excursion (string-append out "/lib")
327 (install-file "libbz2.a" (string-append static "/lib"))
328 (delete-file "libbz2.a")
330 (add-after 'install-shared-lib 'patch-scripts
331 (lambda* (#:key outputs inputs #:allow-other-keys)
332 (let* ((out (assoc-ref outputs "out")))
333 (substitute* (string-append out "/bin/bzdiff")
337 #:make-flags (list (string-append "PREFIX="
338 (assoc-ref %outputs "out")))
340 ;; Don't attempt to run the tests when cross-compiling.
341 ,@(if (%current-target-system)
344 (outputs '("out" "static"))
345 (synopsis "High-quality data compression program")
347 "bzip2 is a freely available, patent free (see below), high-quality data
348 compressor. It typically compresses files to within 10% to 15% of the best
349 available techniques (the PPM family of statistical compressors), whilst
350 being around twice as fast at compression and six times faster at
352 (license (license:non-copyleft "file://LICENSE"
353 "See LICENSE in the distribution."))
354 (home-page "https://web.archive.org/web/20180801004107/http://www.bzip.org/")))
356 (define-public lbzip2
362 (uri (string-append "http://archive.lbzip2.org/lbzip2-"
366 "1sahaqc5bw4i0iyri05syfza4ncf5cml89an033fspn97klmxis6"))
367 (modules '((guix build utils)))
370 (substitute* (find-files "lib" "\\.c$")
371 (("#if defined _IO_ftrylockfile")
372 "#if defined _IO_EOF_SEEN"))
373 (substitute* "lib/stdio-impl.h"
374 (("^/\\* BSD stdio derived implementations")
375 (string-append "#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN\n"
376 "# define _IO_IN_BACKUP 0x100\n"
378 "/* BSD stdio derived implementations")))
380 (build-system gnu-build-system)
381 (synopsis "Parallel bzip2 compression utility")
383 "lbzip2 is a multi-threaded compression utility with support for the
384 bzip2 compressed file format. lbzip2 can process standard bz2 files in
385 parallel. It uses POSIX threading model (pthreads), which allows it to take
386 full advantage of symmetric multiprocessing (SMP) systems. It has been proven
387 to scale linearly, even to over one hundred processor cores. lbzip2 is fully
388 compatible with bzip2 – both at file format and command line level.")
389 (home-page "http://www.lbzip2.org/")
390 (license license:gpl3+)))
392 (define-public pbzip2
398 (uri (string-append "https://launchpad.net/pbzip2/"
399 (version-major+minor version) "/" version
400 "/+download/" name "-" version ".tar.gz"))
403 "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg"))))
404 (build-system gnu-build-system)
408 `(#:tests? #f ; no tests
409 #:phases (modify-phases %standard-phases
410 (delete 'configure)) ; no configure script
411 #:make-flags (list (string-append "PREFIX=" %output))))
412 (home-page "http://compression.ca/pbzip2/")
413 (synopsis "Parallel bzip2 implementation")
415 "Pbzip2 is a parallel implementation of the bzip2 block-sorting file
416 compressor that uses pthreads and achieves near-linear speedup on SMP machines.
417 The output of this version is fully compatible with bzip2 v1.0.2 (i.e. anything
418 compressed with pbzip2 can be decompressed with bzip2).")
419 (license (license:non-copyleft "file://COPYING"
420 "See COPYING in the distribution."))))
428 (uri (list (string-append "http://tukaani.org/xz/xz-" version
430 (string-append "http://multiprecision.org/guix/xz-"
434 "0ibi2zsfaz6l756spjwc5rayf4ckgc9hwmy8qinppcyk4svz64mm"))))
435 (build-system gnu-build-system)
438 (modify-phases %standard-phases
439 (add-after 'install 'move-static-lib
440 (lambda* (#:key outputs #:allow-other-keys)
441 (let ((out (assoc-ref outputs "out"))
442 (static (assoc-ref outputs "static")))
443 (mkdir-p (string-append static "/lib"))
444 (rename-file (string-append out "/lib/liblzma.a")
445 (string-append static "/lib/liblzma.a"))
446 ;; Remove reference to the static library from the .la file
447 ;; so Libtool does the right thing when both the shared and
448 ;; static library is available.
449 (substitute* (string-append out "/lib/liblzma.la")
450 (("^old_library='liblzma.a'") "old_library=''"))
452 (outputs '("out" "static"))
453 (synopsis "General-purpose data compression")
455 "XZ Utils is free general-purpose data compression software with high
456 compression ratio. XZ Utils were written for POSIX-like systems, but also
457 work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils.
459 The core of the XZ Utils compression code is based on LZMA SDK, but it has
460 been modified quite a lot to be suitable for XZ Utils. The primary
461 compression algorithm is currently LZMA2, which is used inside the .xz
462 container format. With typical files, XZ Utils create 30 % smaller output
463 than gzip and 15 % smaller output than bzip2.")
464 (license (list license:gpl2+ license:lgpl2.1+)) ; bits of both
465 (home-page "https://tukaani.org/xz/")))
474 "https://github.com/fragglet/lhasa/releases/download/v"
475 version "/lhasa-" version ".tar.gz"))
478 "092zi9av18ma20c6h9448k0bapvx2plnp292741dvfd9hmgqxc1z"))))
479 (build-system gnu-build-system)
482 (modify-phases %standard-phases
483 (add-before 'check 'set-up-test-environment
484 (lambda* (#:key inputs #:allow-other-keys)
485 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
489 `(("tzdata" ,tzdata)))
490 (home-page "https://fragglet.github.com/lhasa/")
491 (synopsis "LHA archive decompressor")
492 (description "Lhasa is a replacement for the Unix LHA tool, for
493 decompressing .lzh (LHA / LHarc) and .lzs (LArc) archives. The backend for the
494 tool is a library, so that it can be reused for other purposes. Lhasa aims to
495 be compatible with as many types of lzh/lzs archives as possible. It also aims
496 to generate the same output as the (non-free) Unix LHA tool, so that it will
497 act as a free drop-in replacement.")
498 (license license:isc)))
507 (uri (string-append "http://www.oberhumer.com/opensource/lzo/download/lzo-"
511 "0wm04519pd3g8hqpjqhfr72q8qmbiwqaxcs3cndny9h86aa95y60"))))
512 (build-system gnu-build-system)
513 (arguments '(#:configure-flags '("--enable-shared")))
514 (home-page "http://www.oberhumer.com/opensource/lzo")
516 "Data compression library suitable for real-time data de-/compression")
518 "LZO is a data compression library which is suitable for data
519 de-/compression in real-time. This means it favours speed over
522 LZO is written in ANSI C. Both the source code and the compressed data
523 format are designed to be portable across platforms.")
524 (license license:gpl2+)))
533 (uri (string-append "http://www.lzop.org/download/lzop-"
537 "0h9gb8q7y54m9mvy3jvsmxf21yx8fc3ylzh418hgbbv0i8mbcwky"))))
538 (build-system gnu-build-system)
539 (inputs `(("lzo" ,lzo)))
540 (home-page "https://www.lzop.org/")
541 (synopsis "Compress or expand files")
543 "Lzop is a file compressor which is very similar to gzip. Lzop uses the
544 LZO data compression library for compression services, and its main advantages
545 over gzip are much higher compression and decompression speed (at the cost of
546 some compression ratio).")
547 (license license:gpl2+)))
555 (uri (string-append "mirror://savannah/lzip/lzip-"
559 "12qdcw5k1cx77brv9yxi1h4dzwibhfmdpigrj43nfk8nscwm12z4"))))
560 (build-system gnu-build-system)
561 (home-page "https://www.nongnu.org/lzip/lzip.html")
562 (synopsis "Lossless data compressor based on the LZMA algorithm")
564 "Lzip is a lossless data compressor with a user interface similar to the
565 one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses
566 more than bzip2, which makes it well-suited for software distribution and data
567 archiving. Lzip is a clean implementation of the LZMA algorithm.")
568 (license license:gpl3+)))
570 (define-public lziprecover
576 (uri (string-append "mirror://savannah/lzip/lziprecover/"
577 "lziprecover-" version ".tar.gz"))
580 "094w2z8fz41yaq0gkyr61cl7pb1d7kchpl5dka7rvm3qvbb7ncd2"))))
581 (build-system gnu-build-system)
582 (home-page "https://www.nongnu.org/lzip/lziprecover.html")
583 (synopsis "Recover and decompress data from damaged lzip files")
585 "Lziprecover is a data recovery tool and decompressor for files in the lzip
586 compressed data format (.lz). It can test the integrity of lzip files, extract
587 data from damaged ones, and repair most files with small errors (up to one
588 single-byte error per member) entirely.
590 Lziprecover is not a replacement for regular backups, but a last line of defence
591 when even the backups are corrupt. It can recover files by merging the good
592 parts of two or more damaged copies, such as can be easily produced by running
593 @command{ddrescue} on a failing device.
595 This package also includes @command{unzcrash}, a tool to test the robustness of
596 decompressors when faced with corrupted input.")
597 (license (list license:bsd-2 ; arg_parser.{cc,h}
598 license:gpl2+)))) ; everything else
600 (define-public sharutils
607 (uri (string-append "mirror://gnu/sharutils/sharutils-"
609 (patches (search-patches "sharutils-CVE-2018-1000097.patch"))
612 "16isapn8f39lnffc3dp4dan05b7x6mnc76v6q5nn8ysxvvvwy19b"))
613 (modules '((guix build utils)))
616 (substitute* (find-files "lib" "\\.c$")
617 (("#if defined _IO_ftrylockfile")
618 "#if defined _IO_EOF_SEEN"))
619 (substitute* "lib/stdio-impl.h"
620 (("^/\\* BSD stdio derived implementations")
621 (string-append "#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN\n"
622 "# define _IO_IN_BACKUP 0x100\n"
624 "/* BSD stdio derived implementations")))
626 (build-system gnu-build-system)
631 (modify-phases %standard-phases
632 (add-after 'patch-source-shebangs 'unpatch-source-shebang
633 ;; revert the patch-shebang phase on a script which is
636 (substitute* "tests/shar-1.ok"
637 (((which "sh")) "/bin/sh"))
639 (home-page "https://www.gnu.org/software/sharutils/")
640 (synopsis "Archives in shell scripts, uuencode/uudecode")
642 "GNU sharutils is a package for creating and manipulating shell
643 archives that can be readily emailed. A shell archive is a file that can be
644 processed by a Bourne-type shell to unpack the original collection of files.
645 This package is mostly for compatibility and historical interest.")
646 (license license:gpl3+)))
648 (define-public sfarklib
655 (url "https://github.com/raboof/sfArkLib.git")
657 (file-name (git-file-name name version))
660 "0jrxy24gak7q5ml06p5jjgzk9i5r2mkfjk4ycirkp4kg7k5a237w"))))
661 (build-system gnu-build-system)
663 `(#:tests? #f ;no "check" target
665 (modify-phases %standard-phases
667 (lambda* (#:key outputs #:allow-other-keys)
668 (substitute* "Makefile"
669 (("/usr/local") (assoc-ref outputs "out")))
673 (home-page "https://github.com/raboof/sfArkLib")
674 (synopsis "Library for SoundFont decompression")
676 "SfArkLib is a C++ library for decompressing SoundFont files compressed
677 with the sfArk algorithm.")
678 (license license:gpl3+)))
680 (define-public sfarkxtc
681 (let ((commit "13cd6f93725a90d91ec5ea75babf1dbd694ac463")
685 (version (git-version "0" revision commit))
687 ;; There are no release tarballs, so we just fetch the latest
688 ;; commit at this time.
691 (url "https://github.com/raboof/sfarkxtc.git")
693 (file-name (git-file-name name version))
696 "1mb1jyk1m11l1gppd9hmql9cyp55sdf7jk5rbc7acky1z4k4mv19"))))
697 (build-system gnu-build-system)
699 `(#:tests? #f ;no "check" target
701 (modify-phases %standard-phases
703 (lambda* (#:key outputs #:allow-other-keys)
704 (substitute* "Makefile"
705 (("/usr/local") (assoc-ref outputs "out")))
709 ("sfarklib" ,sfarklib)))
710 (home-page "https://github.com/raboof/sfarkxtc")
711 (synopsis "Basic sfArk decompressor")
712 (description "SfArk extractor converts SoundFonts in the compressed legacy
713 sfArk file format to the uncompressed sf2 format.")
714 (license license:gpl3+))))
716 (define-public libmspack
719 (home-page "https://cabextract.org.uk/libmspack/")
724 (uri (string-append home-page name "-" version "alpha.tar.gz"))
726 (base32 "13janaqsvm7aqc4agjgd4819pbgqv50j88bh5kci1z70wvg65j5s"))))
727 (build-system gnu-build-system)
729 `(#:configure-flags '("--disable-static")))
730 (synopsis "Compression tools for some formats used by Microsoft")
732 "The purpose of libmspack is to provide both compression and
733 decompression of some loosely related file formats used by Microsoft.")
734 (license license:lgpl2.1+)))
743 (uri (git-reference (url "https://github.com/lz4/lz4")
744 (commit (string-append "v" version))))
747 "0lpaypmk70ag2ks3kf2dl4ac3ba40n5kc1ainkp9wfjawz76mh61"))
748 (file-name (git-file-name name version))))
749 (build-system gnu-build-system)
753 ("valgrind" ,valgrind)))
755 `(#:test-target "test"
756 #:make-flags (list "CC=gcc"
757 (string-append "prefix=" (assoc-ref %outputs "out")))
758 #:phases (modify-phases %standard-phases
759 (delete 'configure) ;no configure script
760 (add-before 'check 'disable-broken-test
762 ;; XXX: test_install.sh fails when prefix is a subdirectory.
763 (substitute* "tests/Makefile"
764 (("^test: (.*) test-install" _ targets)
765 (string-append "test: " targets)))
767 (home-page "https://www.lz4.org")
768 (synopsis "Compression algorithm focused on speed")
769 (description "LZ4 is a lossless compression algorithm, providing
770 compression speed at 400 MB/s per core (0.16 Bytes/cycle). It also features an
771 extremely fast decoder, with speed in multiple GB/s per core (0.71 Bytes/cycle).
772 A high compression derivative, called LZ4_HC, is also provided. It trades CPU
773 time for compression ratio.")
774 ;; The libraries (lz4, lz4hc, and xxhash) are BSD licenced. The command
775 ;; line interface programs (lz4, fullbench, fuzzer, datagen) are GPL2+.
776 (license (list license:bsd-2 license:gpl2+))))
778 (define-public squashfs-tools
780 (name "squashfs-tools")
784 (uri (string-append "mirror://sourceforge/squashfs/squashfs/"
785 "squashfs" version "/"
786 "squashfs" version ".tar.gz"))
789 "1xpklm0y43nd9i6jw43y2xh5zvlmj9ar2rvknh0bh7kv8c95aq0d"))))
790 (build-system gnu-build-system)
792 '(#:tests? #f ; no check target
798 (string-append "INSTALL_DIR=" %output "/bin"))
800 (modify-phases %standard-phases
803 (chdir "squashfs-tools")
805 (add-after 'unpack 'fix-glibc-compatability
807 (substitute* '("squashfs-tools/mksquashfs.c"
808 "squashfs-tools/unsquashfs.c")
810 "<sys/sysinfo.h>\n#include <sys/sysmacros.h>"))
817 (home-page "http://squashfs.sourceforge.net/")
818 (synopsis "Tools to create and extract squashfs file systems")
820 "Squashfs is a highly compressed read-only file system for Linux. It uses
821 zlib to compress files, inodes, and directories. All blocks are packed to
822 minimize the data overhead, and block sizes of between 4K and 1M are supported.
823 It is intended to be used for archival use, for live CDs, and for embedded
824 systems where low overhead is needed. This package allows you to create and
825 extract such file systems.")
826 (license license:gpl2+)))
828 ;; We need this for building squashfs images with symlinks.
829 (define-public squashfs-tools-next
830 (let ((commit "fb33dfc32b131a1162dcf0e35bd88254ae10e265")
832 (package (inherit squashfs-tools)
833 (name "squashfs-tools-next")
834 (version (string-append "4.3-" revision (string-take commit 7)))
838 (url "https://github.com/plougher/squashfs-tools.git")
840 (file-name (git-file-name name version))
843 "1x2skf8hxzfch978nzx5mh46d4hhi6gl22270hiarjszsjk3bnsx")))))))
851 (uri (string-append "http://zlib.net/pigz/"
852 name "-" version ".tar.gz"))
855 "0wsgw5vwl23jrnpsvd8v3xcp5k4waw5mk0164fynjhkv58i1dy54"))))
856 (build-system gnu-build-system)
859 (modify-phases %standard-phases
862 (lambda* (#:key outputs #:allow-other-keys)
863 (let* ((out (assoc-ref outputs "out"))
864 (bin (string-append out "/bin"))
865 (man (string-append out "/share/man/man1")))
866 (install-file "pigz" bin)
867 (symlink "pigz" (string-append bin "/unpigz"))
868 (install-file "pigz.1" man)
870 #:make-flags (list "CC=gcc")
871 #:test-target "tests"))
872 (inputs `(("zlib" ,zlib)))
873 (home-page "https://zlib.net/pigz/")
874 (synopsis "Parallel implementation of gzip")
876 "This package provides a parallel implementation of gzip that exploits
877 multiple processors and multiple cores when compressing data.")
879 ;; Things under zopfli/ are under ASL2.0, but 4 files at the top-level,
880 ;; written by Mark Adler, are under another non-copyleft license.
881 (license license:asl2.0)))
890 "https://github.com/vasi/pixz/releases/download/v" version
891 "/pixz-" version ".tar.xz"))
894 "1s3j7zw6j5zi3fhdxg287ndr3wf6swac7z21mqd1pyiln530gi82"))))
895 (build-system gnu-build-system)
897 `(("pkg-config" ,pkg-config)
898 ("libarchive" ,libarchive)))
899 (home-page "https://github.com/vasi/pixz")
900 (synopsis "Parallel indexing implementation of LZMA")
902 "The existing XZ Utils provide great compression in the .xz file format,
903 but they produce just one big block of compressed data. Pixz instead produces
904 a collection of smaller blocks which makes random access to the original data
905 possible and can compress in parallel. This is especially useful for large
907 (license license:bsd-2)))
909 (define-public brotli
910 (let ((commit "e992cce7a174d6e2b3486616499d26bb0bad6448")
914 (version (string-append "0.1-" revision "."
915 (string-take commit 7)))
919 (url "https://github.com/bagder/libbrotli.git")
922 (file-name (string-append name "-" version ".tar.xz"))
925 "1qxxsasvwbbbh6dl3138y9h3fg0q2v7xdk5jjc690bdg7g1wrj6n"))
926 (modules '((guix build utils)))
928 ;; This is a recursive submodule that is
929 ;; unnecessary for this package, so delete it.
930 (delete-file-recursively "brotli/terryfy")
932 (build-system gnu-build-system)
934 `(("autoconf" ,autoconf)
935 ("automake" ,automake)
936 ("libtool" ,libtool)))
938 `(#:phases (modify-phases %standard-phases
939 (add-after 'unpack 'autogen
942 (invoke "autoreconf" "-vfi"))))))
943 (home-page "https://github.com/bagder/libbrotli/")
944 (synopsis "Implementation of the Brotli compression algorithm")
946 "Brotli is a general-purpose lossless compression algorithm. It is
947 similar in speed to deflate but offers denser compression. This package
948 provides encoder and a decoder libraries: libbrotlienc and libbrotlidec,
949 respectively, based on the reference implementation from Google.")
950 (license license:expat))))
952 (define-public bsdiff
956 (home-page "https://www.daemonology.net/bsdiff/")
959 (uri (string-append home-page name "-" version ".tar.gz"))
962 "0j2zm3z271x5aw63mwhr3vymzn45p2vvrlrpm9cz2nywna41b0hq"))))
963 (build-system gnu-build-system)
965 `(#:make-flags (list "INSTALL=install" "CC=gcc"
966 (string-append "PREFIX=" (assoc-ref %outputs "out")))
967 #:phases (modify-phases %standard-phases
969 (add-before 'build 'fix-Makefile
971 (substitute* "Makefile"
972 ;; Adjust syntax to make it compatible with GNU Make.
974 ;; Help install(1) create the target directory.
975 (("\\$\\{PREFIX\\}") "-D -t ${PREFIX}"))
977 #:tests? #f)) ;no tests
980 (synopsis "Patch binary files")
982 "@command{bsdiff} and @command{bspatch} are tools for building and
983 applying patches to binary files. By using suffix sorting (specifically
984 Larsson and Sadakane's @code{qsufsort}) and taking advantage of how
985 executable files change, bsdiff routinely produces binary patches 50-80%
986 smaller than those produced by @code{Xdelta}.")
987 (license license:bsd-2)))
989 (define-public cabextract
992 (home-page "https://cabextract.org.uk/")
996 (uri (string-append home-page "cabextract-" version ".tar.gz"))
999 "19qwhl2r8ip95q4vxzxg2kp4p125hjmc9762sns1dwwf7ikm7hmg"))
1000 (modules '((guix build utils)))
1003 ;; Delete bundled libmspack.
1004 (delete-file-recursively "mspack")
1006 (build-system gnu-build-system)
1008 '(#:configure-flags '("--with-external-libmspack")
1010 (modify-phases %standard-phases
1011 ;; cabextract needs some of libmspack's header files.
1012 ;; These are located in the "mspack" directory of libmspack.
1013 (add-before 'build 'unpack-libmspack
1014 (lambda* (#:key inputs #:allow-other-keys)
1015 (let ((dir-name "libmspack-src"))
1017 (invoke "tar" "-xvf" (assoc-ref inputs "libmspack-source")
1018 "-C" dir-name "--strip-components" "1")
1019 (rename-file (string-append dir-name "/mspack")
1021 (delete-file-recursively dir-name)
1024 `(("pkg-config" ,pkg-config)))
1026 `(("libmspack" ,libmspack)
1027 ("libmspack-source" ,(package-source libmspack))))
1028 (synopsis "Tool to unpack Cabinet archives")
1029 (description "Extracts files out of Microsoft Cabinet (.cab) archives")
1030 ;; Some source files specify gpl2+, lgpl2+, however COPYING is gpl3.
1031 (license license:gpl3+)))
1033 (define-public xdelta
1041 (url "https://github.com/jmacd/xdelta.git")
1042 (commit (string-append "v" version))))
1043 (file-name (git-file-name name version))
1046 "09mmsalc7dwlvgrda56s2k927rpl3a5dzfa88aslkqcjnr790wjy"))
1048 ;; This file isn't freely distributable and has no effect on building.
1050 (delete-file "xdelta3/draft-korn-vcdiff.txt")
1052 (build-system gnu-build-system)
1054 `(("autoconf" ,autoconf)
1055 ("automake" ,automake)))
1058 (modify-phases %standard-phases
1059 (add-after 'unpack 'enter-build-directory
1060 (lambda _ (chdir "xdelta3") #t)))))
1061 (home-page "http://xdelta.org")
1062 (synopsis "Delta encoder for binary files")
1063 (description "xdelta encodes only the differences between two binary files
1064 using the VCDIFF algorithm and patch file format described in RFC 3284. It can
1065 also be used to apply such patches. xdelta is similar to @command{diff} and
1066 @command{patch}, but is not limited to plain text and does not generate
1067 human-readable output.")
1068 (license license:asl2.0)))
1070 (define-public lrzip
1078 "http://ck.kolivas.org/apps/lrzip/lrzip-" version ".tar.bz2"))
1081 "0mb449vmmwpkalq732jdyginvql57nxyd31sszb108yps1lf448d"))
1082 (patches (search-patches "lrzip-CVE-2017-8842.patch"))))
1083 (build-system gnu-build-system)
1085 `(;; nasm is only required when building for 32-bit x86 platforms
1086 ,@(if (string-prefix? "i686" (or (%current-target-system)
1095 (home-page "http://ck.kolivas.org/apps/lrzip/")
1096 (synopsis "Large file compressor with a very high compression ratio")
1097 (description "lrzip is a compression utility that uses long-range
1098 redundancy reduction to improve the subsequent compression ratio of
1099 larger files. It can then further compress the result with the ZPAQ or
1100 LZMA algorithms for maximum compression, or LZO for maximum speed. This
1101 choice between size or speed allows for either better compression than
1102 even LZMA can provide, or a higher speed than gzip while compressing as
1104 (license (list license:gpl3+
1105 license:public-domain)))) ; most files in lzma/
1107 (define-public snappy
1115 (url "https://github.com/google/snappy.git")
1117 (file-name (git-file-name name version))
1119 (base32 "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2"))
1120 (patches (search-patches "snappy-add-O2-flag-in-CmakeLists.txt.patch"))))
1121 (build-system cmake-build-system)
1123 `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
1124 (home-page "https://github.com/google/snappy")
1125 (synopsis "Fast compressor/decompressor")
1126 (description "Snappy is a compression/decompression library. It does not
1127 aim for maximum compression, or compatibility with any other compression library;
1128 instead, it aims for very high speeds and reasonable compression. For instance,
1129 compared to the fastest mode of zlib, Snappy is an order of magnitude faster
1130 for most inputs, but the resulting compressed files are anywhere from 20% to
1132 (license license:asl2.0)))
1134 (define-public p7zip
1140 (uri (string-append "mirror://sourceforge/" name "/" name "/"
1141 version "/" name "_" version
1142 "_src_all.tar.bz2"))
1145 "07rlwbbgszq8i7m8jh3x6j2w2hc9a72dc7fmqawnqkwlwb00mcjy"))
1146 (modules '((guix build utils)))
1149 ;; Remove non-free source files
1150 (for-each delete-file
1152 (find-files "CPP/7zip/Compress" "Rar.*")
1153 (find-files "CPP/7zip/Crypto" "Rar.*")
1154 (find-files "DOC/unRarLicense.txt")
1155 (find-files "Utils/file_Codecs_Rar_so.py")))
1156 (delete-file-recursively "CPP/7zip/Archive/Rar")
1157 (delete-file-recursively "CPP/7zip/Compress/Rar")
1159 (patches (search-patches "p7zip-CVE-2016-9296.patch"
1160 "p7zip-CVE-2017-17969.patch"
1161 "p7zip-remove-unused-code.patch"))))
1162 (build-system gnu-build-system)
1165 (list (string-append "DEST_HOME=" (assoc-ref %outputs "out")) "all3")
1167 (modify-phases %standard-phases
1169 (lambda* (#:key system outputs #:allow-other-keys)
1171 (let ((system ,(or (%current-target-system)
1172 (%current-system))))
1174 ((string-prefix? "x86_64" system)
1175 "makefile.linux_amd64_asm")
1176 ((string-prefix? "i686" system)
1177 "makefile.linux_x86_asm_gcc_4.X")
1179 "makefile.linux_any_cpu_gcc_4.X")))
1180 "makefile.machine")))
1183 (invoke "make" "test")
1184 (invoke "make" "test_7z")
1185 (invoke "make" "test_7zr"))))))
1187 (let ((system (or (%current-target-system)
1188 (%current-system))))
1189 `(,@(cond ((string-prefix? "x86_64" system)
1191 ((string-prefix? "i686" system)
1194 (home-page "http://p7zip.sourceforge.net/")
1195 (synopsis "Command-line file archiver with high compression ratio")
1196 (description "p7zip is a command-line port of 7-Zip, a file archiver that
1197 handles the 7z format which features very high compression ratios.")
1198 (license (list license:lgpl2.1+
1200 license:public-domain))))
1202 (define-public gzstream
1209 ;; No versioned URL, but last release was in 2003.
1210 "http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.tgz")
1211 (file-name (string-append name "-" version ".tgz"))
1214 "00y19pqjsdj5zcrx4p9j56pl73vayfwnb7y2hvp423nx0cwv5b4r"))
1215 (modules '((guix build utils)))
1217 ;; Remove pre-compiled object.
1219 (delete-file "gzstream.o")
1221 (build-system gnu-build-system)
1223 `(#:test-target "test"
1225 (modify-phases %standard-phases
1228 (lambda* (#:key outputs #:allow-other-keys)
1229 (let* ((out (assoc-ref outputs "out"))
1230 (lib (string-append out "/lib"))
1231 (include (string-append out "/include")))
1232 (install-file "libgzstream.a" lib)
1233 (install-file "gzstream.h" include)
1235 (propagated-inputs `(("zlib" ,zlib)))
1236 (home-page "http://www.cs.unc.edu/Research/compgeom/gzstream/")
1237 (synopsis "Compressed C++ iostream")
1238 (description "gzstream is a small library for providing zlib
1239 functionality in a C++ iostream.")
1240 (license license:lgpl2.1+)))
1248 (method url-fetch/zipbomb)
1249 (uri (string-append "http://mattmahoney.net/dc/zpaq"
1250 (string-delete #\. version) ".zip"))
1253 "066l94yyladlfzri877nh2dhkvspagjn3m5bmv725fmhkr9c4pp8"))
1254 (modules '((guix build utils)))
1256 ;; Delete irrelevant pre-compiled binaries.
1258 (for-each delete-file (find-files "." "\\.exe$"))
1260 (build-system gnu-build-system)
1263 (modify-phases %standard-phases
1264 (delete 'configure)) ; no ‘configure’ script
1267 (string-append "CPPFLAGS=-Dunix"
1268 ,(match (or (%current-target-system)
1273 ;; These should be safe, lowest-common-denominator instruction sets,
1274 ;; allowing for some optimisation while remaining reproducible.
1275 (string-append "CXXFLAGS=-O3 -DNDEBUG"
1276 ,(match (or (%current-target-system)
1278 ("x86_64-linux" " -march=nocona -mtune=generic")
1279 ("i686-linux" " -march=i686 -mtune=generic")
1280 ("armhf-linux" " -mtune=generic-armv7-a")
1282 (string-append "PREFIX="
1283 (assoc-ref %outputs "out")))))
1285 `(("perl" ,perl))) ; for pod2man
1286 (home-page "http://mattmahoney.net/dc/zpaq.html")
1287 (synopsis "Incremental journaling archiver")
1288 (description "ZPAQ is a command-line archiver for realistic situations with
1289 many duplicate and already compressed files. It backs up only those files
1290 modified since the last update. All previous versions remain untouched and can
1291 be independently recovered. Identical files are only stored once (known as
1292 @dfn{de-duplication}). Archives can also be encrypted.
1294 ZPAQ is intended to back up user data, not entire operating systems. It ignores
1295 owner and group IDs, ACLs, extended attributes, or special file types like
1296 devices, sockets, or named pipes. It does not follow or restore symbolic links
1297 or junctions, and always follows hard links.")
1298 (license (list license:public-domain
1299 ;; libzpaq.cpp contains a mix of public-domain and
1300 ;; expat-licenced (or ‘MIT’) code.
1303 (define-public unshield
1308 (origin (method git-fetch)
1310 (url "http://github.com/twogood/unshield.git")
1312 (file-name (git-file-name name version))
1315 "19wn22vszhci8dfcixx5rliz7phx3lv5ablvhjlclvj75k2vsdqd"))))
1316 (build-system cmake-build-system)
1319 ("openssl" ,openssl)
1320 ;; Test data that is otherwise downloaded with curl.
1321 ("unshield-avigomanager11b22.zip"
1325 "https://www.dropbox.com/s/8r4b6752swe3nhu/"
1326 "unshield-avigomanager11b22.zip?dl=1"))
1328 (base32 "0fwq7lih04if68wpwpsk5wjqyvh32db76a41sq6gbx4dn1lc3ddn"))
1329 (file-name "unshield-avigomanager11b22.zip")))
1330 ("unshield-baldurs_gate_patch_v1_1_4315_international.zip"
1334 "https://www.dropbox.com/s/9ruil8oi6amjbbk/"
1335 "unshield-baldurs_gate_patch_v1_1_4315_international.zip?dl=1"))
1337 (base32 "0spaxf6dardlhqxz3ys09fzamj007q3nfyw4xng6gh3qp9780maj"))
1338 (file-name "unshield-baldurs_gate_patch_v1_1_4315_international.zip")))
1339 ("unshield-the-feeble-files-spanish.zip"
1343 "https://www.dropbox.com/s/1ng0z9kfxc7eb1e/"
1344 "unshield-the-feeble-files-spanish.zip?dl=1"))
1346 (base32 "1k5cw6vnpja8yjlnhx5124xrw9i8s1l539hfdqqrqz3l5gn0bnyd"))
1347 (file-name "unshield-the-feeble-files-spanish.zip")))))
1349 `(("unzip" ,unzip)))
1351 `(#:out-of-source? #f
1353 (modify-phases %standard-phases
1354 (add-before 'check 'pre-check
1355 (lambda* (#:key inputs #:allow-other-keys)
1356 (for-each (lambda (i)
1357 (copy-file (assoc-ref inputs i)
1358 (string-append "test/v0/" i)))
1359 '("unshield-avigomanager11b22.zip"
1360 "unshield-baldurs_gate_patch_v1_1_4315_international.zip"
1361 "unshield-the-feeble-files-spanish.zip"))
1362 (substitute* (find-files "test/" "/*\\.sh")
1363 ;; Tests expect the unshield binary in a specific
1365 (("/var/tmp/unshield/bin/unshield")
1366 (string-append (getcwd) "/src/unshield"))
1367 ;; We no longer need to download the data.
1369 (("curl -(|f)sSL -o test.zip .*") ""))
1370 (substitute* "test/v0/avigomanager.sh"
1372 (string-append (getcwd)
1373 "/test/v0/unshield-avigomanager11b22.zip")))
1374 (substitute* "test/v0/baldurs_gate_patch_v1_1_4315_international.sh"
1378 "/test/v0/unshield-baldurs_gate_patch_v1_1_4315_international.zip")))
1379 (substitute* "test/v0/the-feeble-files-spanish.sh"
1381 (string-append (getcwd)
1382 "/test/v0/unshield-the-feeble-files-spanish.zip")))
1386 (invoke "./run-tests.sh"))))))
1387 (home-page "https://github.com/twogood/unshield")
1388 (synopsis "Extract CAB files from InstallShield installers")
1390 "@command{unshield} is a tool and library for extracting @file{.cab}
1391 archives from InstallShield installers.")
1392 (license license:expat)))
1401 (uri (string-append "https://github.com/facebook/zstd/releases/download/"
1402 "v" version "/zstd-" version ".tar.gz"))
1404 (base32 "1ja3nrjynmiwwdjrf6crraizkbagp7y414bqqq2ady91nn1hjwqj"))))
1405 (build-system gnu-build-system)
1406 (outputs '("out" ;1.1MiB executables and documentation
1407 "lib" ;1MiB shared library and headers
1408 "static")) ;1MiB static library
1411 (modify-phases %standard-phases
1412 (delete 'configure) ;no configure script
1413 (add-after 'install 'adjust-library-locations
1414 (lambda* (#:key outputs #:allow-other-keys)
1415 (let* ((out (assoc-ref outputs "out"))
1416 (lib (assoc-ref outputs "lib"))
1417 (static (assoc-ref outputs "static"))
1418 (shared-libs (string-append lib "/lib"))
1419 (static-libs (string-append static "/lib")))
1420 ;; Move the static library to its own output to save ~1MiB.
1421 (mkdir-p static-libs)
1422 (for-each (lambda (ar)
1423 (link ar (string-append static-libs "/"
1426 (find-files shared-libs "\\.a$"))
1428 ;; While here, remove prefix= from the pkg-config file because it
1429 ;; is unused, and because it contains a needless reference to $out.
1430 ;; XXX: It would be great if #:disallow-references worked between
1432 (substitute* (string-append shared-libs "/pkgconfig/libzstd.pc")
1433 (("^prefix=.*") ""))
1438 (string-append "PREFIX=" (assoc-ref %outputs "out"))
1439 (string-append "LIBDIR=" (assoc-ref %outputs "lib") "/lib")
1440 (string-append "INCLUDEDIR=" (assoc-ref %outputs "lib") "/include")
1441 ;; Skip auto-detection of, and creating a dependency on, the build
1442 ;; environment's ‘xz’ for what amounts to a dubious feature anyway.
1444 ;; Not currently detected, but be explicit & avoid surprises later.
1447 (home-page "https://facebook.github.io/zstd/")
1448 (synopsis "Zstandard real-time compression algorithm")
1449 (description "Zstandard (@command{zstd}) is a lossless compression algorithm
1450 that combines very fast operation with a compression ratio comparable to that of
1451 zlib. In most scenarios, both compression and decompression can be performed in
1452 ‘real time’. The compressor can be configured to provide the most suitable
1453 trade-off between compression ratio and speed, without affecting decompression
1455 (license (list license:bsd-3 ; the main top-level LICENSE file
1456 license:bsd-2 ; many files explicitly state 2-Clause
1457 license:gpl2 ; the main top-level COPYING file
1458 license:gpl3+ ; tests/gzip/*.sh
1459 license:expat ; lib/dictBuilder/divsufsort.[ch]
1460 license:public-domain ; zlibWrapper/examples/fitblk*
1461 license:zlib)))) ; zlibWrapper/{gz*.c,gzguts.h}
1463 (define-public pzstd
1466 (version (package-version zstd))
1467 (source (package-source zstd))
1468 (build-system gnu-build-system)
1470 `(("googletest" ,googletest)))
1473 (modify-phases %standard-phases
1474 (add-after 'unpack 'enter-subdirectory
1475 (lambda _ (chdir "contrib/pzstd") #t))
1476 (delete 'configure) ; no configure script
1477 (add-before 'check 'compile-tests
1478 (lambda* (#:key make-flags #:allow-other-keys)
1479 (apply invoke "make" "tests" make-flags)))
1480 (add-after 'install 'install-documentation
1481 (lambda* (#:key outputs #:allow-other-keys)
1482 (let* ((out (assoc-ref outputs "out"))
1483 (doc (string-append out "/share/doc/" ,name)))
1485 (install-file "README.md" doc)
1489 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1490 (home-page (package-home-page zstd))
1491 (synopsis "Threaded implementation of the Zstandard compression algorithm")
1492 (description "Parallel Zstandard (PZstandard or @command{pzstd}) is a
1493 multi-threaded implementation of the @uref{http://zstd.net/, Zstandard
1494 compression algorithm}. It is fully compatible with the original Zstandard file
1495 format and command-line interface, and can be used as a drop-in replacement.
1497 Compression is distributed over multiple processor cores to improve performance,
1498 as is the decompression of data compressed in this manner. Data compressed by
1499 other implementations will only be decompressed by two threads: one performing
1500 the actual decompression, the other input and output.")
1501 (license (package-license zstd))))
1510 (uri (string-append "mirror://sourceforge/infozip"
1511 "/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz"))
1514 "0sb3h3067pzf3a7mlxn1hikpcjrsvycjcnj9hl9b1c3ykcgvps7h"))))
1515 (build-system gnu-build-system)
1516 (inputs `(("bzip2" ,bzip2)))
1518 `(#:tests? #f ; no test target
1519 #:make-flags (let ((out (assoc-ref %outputs "out")))
1520 (list "-f" "unix/Makefile"
1521 (string-append "prefix=" out)
1522 (string-append "MANDIR=" out "/share/man/man1")))
1524 (modify-phases %standard-phases
1526 (lambda* (#:key (make-flags '()) #:allow-other-keys)
1527 (apply invoke "make" "generic_gcc" make-flags)))
1528 (delete 'configure))))
1529 (home-page "http://www.info-zip.org/Zip.html")
1530 (synopsis "Compression and file packing utility")
1532 "Zip is a compression and file packaging/archive utility. Zip is useful
1533 for packaging a set of files for distribution, for archiving files, and for
1534 saving disk space by temporarily compressing unused files or directories.
1535 Zip puts one or more compressed files into a single ZIP archive, along with
1536 information about the files (name, path, date, time of last modification,
1537 protection, and check information to verify file integrity). An entire
1538 directory structure can be packed into a ZIP archive with a single command.
1540 Zip has one compression method (deflation) and can also store files without
1541 compression. Zip automatically chooses the better of the two for each file.
1542 Compression ratios of 2:1 to 3:1 are common for text files.")
1543 (license (license:non-copyleft "file://LICENSE"
1544 "See LICENSE in the distribution."))))
1546 (define-public unzip
1547 (package (inherit zip)
1553 (uri (string-append "mirror://sourceforge/infozip"
1554 "/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz"))
1557 "0dxx11knh3nk95p2gg2ak777dd11pr7jx5das2g49l262scrcv83"))
1558 (patches (search-patches "unzip-CVE-2014-8139.patch"
1559 "unzip-CVE-2014-8140.patch"
1560 "unzip-CVE-2014-8141.patch"
1561 "unzip-CVE-2014-9636.patch"
1562 "unzip-CVE-2015-7696.patch"
1563 "unzip-CVE-2015-7697.patch"
1564 "unzip-allow-greater-hostver-values.patch"
1565 "unzip-initialize-symlink-flag.patch"
1566 "unzip-remove-build-date.patch"
1567 "unzip-attribs-overflow.patch"
1568 "unzip-overflow-on-invalid-input.patch"
1569 "unzip-format-secure.patch"
1570 "unzip-overflow-long-fsize.patch"))))
1571 (build-system gnu-build-system)
1572 ;; no inputs; bzip2 is not supported, since not compiled with BZ_NO_STDIO
1574 `(#:phases (modify-phases %standard-phases
1576 (add-after 'unpack 'fortify
1578 ;; Mitigate CVE-2018-1000035, an exploitable buffer overflow.
1579 ;; This environment variable is recommended in 'unix/Makefile'
1580 ;; for passing flags to the C compiler.
1581 (setenv "LOCAL_UNZIP" "-D_FORTIFY_SOURCE=1")
1584 (lambda* (#:key make-flags #:allow-other-keys)
1585 (apply invoke "make"
1586 `("-j" ,(number->string
1587 (parallel-job-count))
1590 #:make-flags (list "-f" "unix/Makefile"
1591 (string-append "prefix=" %output)
1592 (string-append "MANDIR=" %output "/share/man/man1"))))
1593 (home-page "http://www.info-zip.org/UnZip.html")
1594 (synopsis "Decompression and file extraction utility")
1596 "UnZip is an extraction utility for archives compressed in .zip format,
1597 also called \"zipfiles\".
1599 UnZip lists, tests, or extracts files from a .zip archive. The default
1600 behaviour (with no options) is to extract into the current directory, and
1601 subdirectories below it, all files from the specified zipfile. UnZip
1602 recreates the stored directory structure by default.")
1603 (license (license:non-copyleft "file://LICENSE"
1604 "See LICENSE in the distribution."))))
1606 (define-public zziplib
1610 (home-page "https://github.com/gdraheim/zziplib")
1613 (uri (git-reference (url home-page)
1614 (commit (string-append "v" version))))
1615 (file-name (git-file-name name version))
1618 "0fbk9k7ryas2wh2ykwkvm1pbi40i88rfvc3dydh9xyd7w2jcki92"))))
1619 (build-system gnu-build-system)
1621 `(#:phases (modify-phases %standard-phases
1622 (add-before 'check 'make-files-writable
1624 (for-each make-file-writable
1625 (find-files "test" #:directories? #t))
1628 ;; XXX: The default test target attempts to download external resources and
1629 ;; fails without error: <https://github.com/gdraheim/zziplib/issues/53>.
1630 ;; To prevent confusing log messages, just run a simple zip test that works.
1631 #:test-target "check-readme"))
1634 (native-inputs `(("perl" ,perl) ; for the documentation
1635 ("pkg-config" ,pkg-config)
1636 ;; for the documentation; Python 3 not supported,
1637 ;; http://forums.gentoo.org/viewtopic-t-863161-start-0.html
1638 ("python" ,python-2)
1639 ("zip" ,zip))) ; to create test files
1640 (synopsis "Library for accessing zip files")
1642 "ZZipLib is a library based on zlib for accessing zip files.")
1643 ;; zziplib is dual licensed under LGPL2.0+ and MPL1.1. Some example source
1644 ;; files carry the Zlib license; see "docs/copying.html" for details.
1645 (license (list license:lgpl2.0+ license:mpl1.1))))
1647 (define-public libzip
1654 "https://libzip.org/download/libzip-" version ".tar.xz"))
1657 "1d53shcy7nvls5db573bbdlm25lfz1iw2zshng5f00cssi5lvpmk"))))
1661 `(("gnutls" ,gnutls)
1662 ("openssl" ,openssl)
1664 (build-system cmake-build-system)
1665 (home-page "https://libzip.org")
1666 (synopsis "C library for reading, creating, and modifying zip archives")
1667 (description "Libzip is a C library for reading, creating, and modifying
1668 zip archives. Files can be added from data buffers, files, or compressed data
1669 copied directly from other zip archives. Changes made without closing the
1670 archive can be reverted.")
1671 (license license:bsd-3)))
1673 (define-public atool
1680 (uri (string-append "http://savannah.nongnu.org/download/atool/atool-"
1684 "0fvhzip2v08jgnlfpyj6rapan39xlsl1ksgq4lp8gfsai2ah1xma"))))
1685 (build-system gnu-build-system)
1688 (modify-phases %standard-phases
1689 (add-after 'unpack 'embed-absolute-file-name
1690 (lambda* (#:key inputs #:allow-other-keys)
1691 (substitute* "atool"
1692 (("(^\\$::cfg_path_file.*= )'file'" _ pre)
1693 (string-append pre "'" (assoc-ref inputs "file")
1699 (home-page "https://www.nongnu.org/atool/")
1700 (synopsis "Universal tool to manage file archives of various types")
1701 (description "The main command is @command{aunpack} which extracts files
1702 from an archive. The other commands provided are @command{apack} (to create
1703 archives), @command{als} (to list files in archives), and @command{acat} (to
1704 extract files to standard out). As @command{atool} invokes external programs
1705 to handle the archives, not all commands may be supported for a certain type
1707 (license license:gpl2+)))
1709 (define-public lunzip
1716 (uri (string-append "mirror://savannah/lzip/lunzip/"
1717 "lunzip-" version ".tar.gz"))
1719 (base32 "19zq3gmlbia2krq4k4zs1j0xjdv7nsdzqvfb0pyca5n53h2mzb91"))))
1720 (build-system gnu-build-system)
1724 (home-page "https://www.nongnu.org/lzip/lunzip.html")
1725 (synopsis "Small, stand-alone lzip decompressor")
1727 "Lunzip is a decompressor for files in the lzip compression format (.lz),
1728 written as a single small C tool with no dependencies. This makes it
1729 well-suited to embedded and other systems without a C++ compiler, or for use in
1730 applications such as software installers that need only to decompress files,
1732 Lunzip is intended to be fully compatible with the regular lzip package.")
1733 (license (list license:bsd-2 ; carg_parser.[ch]
1734 license:gpl2+)))) ; everything else
1736 (define-public clzip
1743 (uri (string-append "mirror://savannah/lzip/clzip/"
1744 "clzip-" version ".tar.gz"))
1746 (base32 "1h14dmc9fi10gcdpdpbgq1bwvcxvivppilj64pf720x8mw915mfr"))))
1747 (build-system gnu-build-system)
1751 (home-page "https://www.nongnu.org/lzip/clzip.html")
1752 (synopsis "Small, stand-alone lzip compressor and decompressor")
1754 "Clzip is a compressor and decompressor for files in the lzip compression
1755 format (.lz), written as a single small C tool with no dependencies. This makes
1756 it well-suited to embedded and other systems without a C++ compiler, or for use
1757 in other applications like package managers.
1758 Clzip is intended to be fully compatible with the regular lzip package.")
1759 (license (list license:bsd-2 ; carg_parser.[ch], lzd in clzip.texi
1762 (define-public lzlib
1769 (uri (string-append "mirror://savannah/lzip/lzlib/"
1770 "lzlib-" version ".tar.gz"))
1772 (base32 "0djdj4sg33rzi4k84cygvnp09bfsv6i8wy2k7i67rayib63myp3c"))))
1773 (build-system gnu-build-system)
1777 "--enable-shared"))) ; only static (.a) is built by default
1778 (home-page "https://www.nongnu.org/lzip/lzlib.html")
1779 (synopsis "Lzip data compression C library")
1781 "Lzlib is a C library for in-memory LZMA compression and decompression in
1782 the lzip format. It supports integrity checking of the decompressed data, and
1783 all functions are thread-safe. The library should never crash, even in case of
1785 (license (list license:bsd-2 ; the library itself
1786 license:gpl2+)))) ; main.c (i.e. minilzip used by tests)
1788 (define-public plzip
1795 (uri (string-append "mirror://savannah/lzip/plzip/"
1796 "plzip-" version ".tar.gz"))
1798 (base32 "04indil809qgfmz776imb3dnhkysh7zk28jcv3mw0ahl2lyaxbzd"))))
1799 (build-system gnu-build-system)
1801 `(("lzlib" ,lzlib)))
1802 (home-page "https://www.nongnu.org/lzip/plzip.html")
1803 (synopsis "Parallel lossless data compressor for the lzip format")
1805 "Plzip is a massively parallel (multi-threaded) lossless data compressor
1806 and decompressor that uses the lzip file format (.lz). Files produced by plzip
1807 are fully compatible with lzip and can be rescued with lziprecover.
1808 On multiprocessor machines, plzip can compress and decompress large files much
1809 faster than lzip, at the cost of a slightly reduced compression ratio (0.4% to
1810 2%). The number of usable threads is limited by file size: on files of only a
1811 few MiB, plzip is no faster than lzip.
1812 Files that were compressed with regular lzip will also not be decompressed
1813 faster by plzip, unless the @code{-b} option was used: lzip usually produces
1814 single-member files which can't be decompressed in parallel.")
1815 (license (list license:bsd-2 ; arg_parser.{cc,h}
1816 license:gpl2+)))) ; everything else
1818 (define-public innoextract
1820 (name "innoextract")
1825 (uri (string-append "https://github.com/dscharrer/innoextract/releases"
1826 "/download/" version
1827 "/innoextract-" version ".tar.gz"))
1830 "0saj50n8ds85shygy4mq1h6s99510r9wgjjdll4dmvhra4lzcy2y"))))
1831 (build-system cmake-build-system)
1834 #:phases (modify-phases %standard-phases
1835 (add-before 'configure 'glibc-is-already-a-system-library
1837 ;; Prevent the build system from passing the glibc
1838 ;; header files to GCC as "system headers", because
1839 ;; it conflicts with the system headers already known
1840 ;; to GCC, causing #include_next failures.
1841 (substitute* "CMakeLists.txt"
1842 (("include_directories\\(SYSTEM \\$\\{iconv")
1843 "include_directories(${iconv"))
1845 (inputs `(("boost" ,boost)
1846 ("libiconv" ,libiconv)
1848 (native-inputs `(("pkg-config" ,pkg-config)))
1849 (home-page "https://constexpr.org/innoextract/")
1850 (synopsis "Tool for extracting Inno Setup installers")
1851 (description "innoextract allows extracting Inno Setup installers under
1852 non-Windows systems without running the actual installer using wine.")
1853 (license license:zlib)))
1855 (define-public google-brotli
1857 (name "google-brotli")
1863 (url "https://github.com/google/brotli.git")
1864 (commit (string-append "v" version))))
1865 (file-name (git-file-name name version))
1867 (base32 "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw"))))
1868 (build-system cmake-build-system)
1871 (modify-phases %standard-phases
1872 (add-after 'install 'rename-static-libraries
1873 ;; The build tools put a 'static' suffix on the static libraries, but
1874 ;; other applications don't know how to find these.
1875 (lambda* (#:key outputs #:allow-other-keys)
1876 (let ((lib (string-append (assoc-ref %outputs "out") "/lib/")))
1877 (rename-file (string-append lib "libbrotlicommon-static.a")
1878 (string-append lib "libbrotlicommon.a"))
1879 (rename-file (string-append lib "libbrotlidec-static.a")
1880 (string-append lib "libbrotlidec.a"))
1881 (rename-file (string-append lib "libbrotlienc-static.a")
1882 (string-append lib "libbrotlienc.a"))
1885 (list ;; Defaults to "lib64" on 64-bit archs.
1886 (string-append "-DCMAKE_INSTALL_LIBDIR="
1887 (assoc-ref %outputs "out") "/lib"))))
1888 (home-page "https://github.com/google/brotli")
1889 (synopsis "General-purpose lossless compression")
1890 (description "This package provides the reference implementation of Brotli,
1891 a generic-purpose lossless compression algorithm that compresses data using a
1892 combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd
1893 order context modeling, with a compression ratio comparable to the best
1894 currently available general-purpose compression methods. It is similar in speed
1895 with @code{deflate} but offers more dense compression.
1897 The specification of the Brotli Compressed Data Format is defined in RFC 7932.")
1898 (license license:expat)))
1906 (uri (string-append "https://www.oberhumer.com/opensource/"
1907 name "/download/" name "-" version ".tar.gz"))
1910 "0j036lkwsxvm15gr29n8wn07cqq79dswjs9k54939ms5zngjjrdq"))))
1911 (build-system gnu-build-system)
1913 `(;; UCL 1.03 fails to build with newer C standards.
1914 #:configure-flags '("CFLAGS=-std=gnu90"
1915 "--enable-shared" "--disable-static")))
1916 (home-page "https://www.oberhumer.com/opensource/ucl/")
1917 (synopsis "Portable lossless data compression library")
1918 (description "UCL implements a number of compression algorithms that
1919 achieve an excellent compression ratio while allowing fast decompression.
1920 Decompression requires no additional memory.
1922 Compared to LZO, the UCL algorithms achieve a better compression ratio but
1923 decompression is a little bit slower.")
1924 (license license:gpl2+)))
1932 (uri (string-append "https://github.com/upx/upx/releases/download/v"
1933 version "/" name "-" version "-src.tar.xz"))
1936 "08anybdliqsbsl6x835iwzljahnm9i7v26icdjkcv33xmk6p5vw1"))
1937 (patches (search-patches "upx-fix-CVE-2017-15056.patch"))))
1938 (build-system gnu-build-system)
1947 ;; CHECK_WHITESPACE does not seem to work.
1948 ;; See https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/upx.
1949 "CHECK_WHITESPACE=true")
1951 (modify-phases %standard-phases
1955 (add-before 'build 'patch-exec-bin-sh
1957 (substitute* (find-files "Makefile")
1958 (("/bin/sh") (which "sh")))
1959 (substitute* "src/Makefile"
1960 (("/bin/sh") (which "sh")))
1962 (add-after 'build 'install-upx
1963 (lambda* (#:key outputs #:allow-other-keys)
1964 (let* ((out (assoc-ref outputs "out"))
1965 (bin (string-append out "/bin")))
1967 (copy-file "src/upx.out" (string-append bin "/upx")))
1970 (home-page "https://upx.github.io/")
1971 ;; CVE-2017-16869 is about Mach-O files which is not of a big concern for Guix.
1972 ;; See https://github.com/upx/upx/issues/146 and
1973 ;; https://nvd.nist.gov/vuln/detail?vulnId=CVE-2017-16869.
1974 ;; The issue will be fixed after version 3.94.
1975 (properties `((lint-hidden-cve . ("CVE-2017-16869"))))
1976 (synopsis "Compression tool for executables")
1978 "The Ultimate Packer for eXecutables (UPX) is an executable file
1979 compressor. UPX typically reduces the file size of programs and shared
1980 libraries by around 50%--70%, thus reducing disk space, network load times,
1981 download times, and other distribution and storage costs.")
1982 (license license:gpl2+)))
1984 (define-public quazip
1991 (url "https://github.com/stachenov/quazip.git")
1992 (commit (string-append "v" version))))
1993 (file-name (git-file-name name version))
1996 "1g473gnsbkvxpsv8lbsmhspn7jnq86b05zzgqh11r581v8ndvz5s"))))
1997 (build-system cmake-build-system)
1999 `(#:tests? #f)) ;no test
2001 `(("doxygen" ,doxygen)))
2003 `(("qtbase" ,qtbase)
2005 (home-page "https://stachenov.github.io/quazip/index.html")
2006 (synopsis "Qt/C++ wrapper for Minizip")
2007 (description "QuaZIP is a simple C++ wrapper over Gilles Vollant's
2008 ZIP/UNZIP package that can be used to access ZIP archives. It uses
2009 Trolltech's Qt toolkit.
2011 QuaZIP allows you to access files inside ZIP archives using QIODevice
2012 API, and that means that you can also use QTextStream, QDataStream or
2013 whatever you would like to use on your zipped files.
2015 QuaZIP provides complete abstraction of the ZIP/UNZIP API, for both
2016 reading from and writing to ZIP archives. ")
2017 ;; Project is distributed under LGPL, but "quazip/z*" "quazip/unzip.*" are
2018 ;; distributed under zlib terms.
2019 (license (list license:lgpl2.1+ license:zlib))))
2021 (define-public zutils
2024 ;; Check and remove the lint-hidden-cve property when updating.
2029 (uri (string-append "mirror://savannah/zutils/zutils-" version ".tar.lz"))
2031 (base32 "0dx35mv78fgqgz6sszs05ng8ipz2xy09ry9vpmka2rmy08b7x907"))))
2032 (build-system gnu-build-system)
2035 (list "--sysconfdir=/etc")
2037 (modify-phases %standard-phases
2039 (lambda* (#:key make-flags outputs #:allow-other-keys)
2040 (apply invoke "make" "install"
2041 (string-append "sysconfdir=" (assoc-ref outputs "out")
2045 ;; Needed to extract the source tarball and run the test suite.
2047 (properties `((lint-hidden-cve . ("CVE-2018-1000637"))))
2048 (home-page "https://www.nongnu.org/zutils/zutils.html")
2049 (synopsis "Utilities that transparently operate on compressed files")
2051 "Zutils is a collection of utilities able to process any combination of
2052 compressed and uncompressed files transparently. If any given file, including
2053 standard input, is compressed, its decompressed content is used instead.
2055 @command{zcat}, @command{zcmp}, @command{zdiff}, and @command{zgrep} are
2056 improved replacements for the shell scripts provided by GNU gzip.
2057 @command{ztest} tests the integrity of supported compressed files.
2058 @command{zupdate} recompresses files with lzip, similar to gzip's
2061 Supported compression formats are bzip2, gzip, lzip, and xz. Zutils uses
2062 external compressors: the compressor to be used for each format is configurable
2063 at run time, and must be installed separately.")
2064 (license (list license:bsd-2 ; arg_parser.{cc,h}
2065 license:gpl2+)))) ; the rest
2067 (define-public makeself-safeextract
2068 (let ((commit "1a95e121fa8e3c02d307ae37b9b7834e616c3683"))
2070 (name "makeself-safeextract")
2071 (version (git-version "0.0.0" "1" commit))
2072 (home-page "https://github.com/ssokolow/makeself_safeextract")
2079 (file-name (git-file-name name version))
2082 "1anlinaj9lvfi8bn00wp11vzqq0f9sig4fm9yrspisx31v0z4a2c"))))
2083 (build-system trivial-build-system)
2085 `(("python" ,python-2)
2089 `(#:modules ((guix build utils))
2092 (use-modules (guix build utils))
2093 (let* ((name "makeself_safeextract")
2094 (source (string-append (assoc-ref %build-inputs "source")
2096 (bin (string-append (assoc-ref %outputs "out") "/bin"))
2097 (target (string-append bin "/" name))
2098 (python (string-append (assoc-ref %build-inputs "python") "/bin"))
2099 (7z (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z"))
2100 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
2101 (setenv "PATH" (string-append (getenv "PATH") ":" python))
2103 (copy-file source target)
2105 (("'7z'") (format #f "'~a'" 7z))
2106 (("'unzip'") (format #f "'~a'" unzip)))
2107 (patch-shebang target)))))
2108 (synopsis "Extract makeself and mojo archives without running untrusted code")
2109 (description "This package provides a script to unpack self-extracting
2110 archives generated by @command{makeself} or @command{mojo} without running the
2111 possibly untrusted extraction shell script.")
2112 (license license:gpl3+))))