1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
5 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2017 John Darrington <jmd@gnu.org>
10 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
11 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Nikita <nikita@n0.is>
13 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
14 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2019 Eric Bavier <bavier@member.fsf.org>
16 ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (gnu packages cdrom)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module (guix packages)
37 #:use-module ((guix licenses) #:select (lgpl2.1+ gpl2 gpl2+ gpl3+ cddl1.0))
38 #:use-module (guix build-system cmake)
39 #:use-module (guix build-system gnu)
40 #:use-module (guix build-system glib-or-gtk)
41 #:use-module (guix gexp)
42 #:use-module (guix utils)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages acl)
45 #:use-module (gnu packages audio)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages flex)
50 #:use-module (gnu packages fontutils)
51 #:use-module (gnu packages gettext)
52 #:use-module (gnu packages docbook)
53 #:use-module (gnu packages xml)
54 #:use-module (gnu packages gtk)
55 #:use-module (gnu packages glib)
56 #:use-module (gnu packages m4)
57 #:use-module (gnu packages man)
58 #:use-module (gnu packages mp3)
59 #:use-module (gnu packages music)
60 #:use-module (gnu packages ncurses)
61 #:use-module (gnu packages elf)
62 #:use-module (gnu packages wxwidgets)
63 #:use-module (gnu packages linux)
64 #:use-module (gnu packages pkg-config)
65 #:use-module (gnu packages readline)
66 #:use-module (gnu packages base)
67 #:use-module (gnu packages perl)
68 #:use-module (gnu packages perl-web)
69 #:use-module (gnu packages python)
70 #:use-module (gnu packages image)
71 #:use-module (gnu packages photo)
72 #:use-module (gnu packages tcl)
73 #:use-module (gnu packages video)
74 #:use-module (gnu packages wget)
75 #:use-module (gnu packages xiph))
77 (define-public libcddb
83 (uri (string-append "mirror://sourceforge/libcddb/libcddb/" version
84 "/libcddb-" version ".tar.bz2"))
87 "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim"))))
88 (build-system gnu-build-system)
89 (arguments '(#:tests? #f)) ; tests rely on access to external servers
90 (home-page "http://libcddb.sourceforge.net/")
91 (synopsis "C library to access data on a CDDB server")
93 "Libcddb is a C library to access data on a CDDB server (freedb.org). It
96 1. search the database for possible CD matches;
98 2. retrieve detailed information about a specific CD;
100 3. submit new CD entries to the database.
102 Libcddb supports both the custom CDDB protocol and tunnelling the query and
103 read operations over plain HTTP. It is also possible to use an HTTP proxy
104 server. If you want to speed things up, you can make use of the built-in
105 caching facility provided by the library.")
108 (define-public libcdio
114 (uri (string-append "mirror://gnu/libcdio/libcdio-"
118 "0avi6apv5ydjy6b9c3z9a46rvp5i57qyr09vr7x4nndxkmcfjl45"))))
119 (build-system gnu-build-system)
121 (list ncurses libcddb))
123 (list help2man pkg-config))
124 (home-page "https://www.gnu.org/software/libcdio/")
125 (synopsis "CD Input and Control library")
127 "The GNU Compact Disc Input and Control Library (libcdio) is a library
128 for CD-ROM and CD image file access. It allows the developer to add CD
129 access to an application without having to worry about the OS- and
130 device-dependent properties of CD-ROM or the specific details of CD image
131 formats. It includes pycdio, a Python interface to libcdio, and
132 libcdio-paranoia, a library providing jitter-free and error-free audio
133 extraction from CDs.")
136 (define-public libcdio-paranoia
138 (name "libcdio-paranoia")
139 (version "10.2+2.0.1")
142 (uri (string-append "mirror://gnu/libcdio/libcdio-paranoia-"
146 "12hfnrq7amv9qjzc92cr265m7kh0a1hpasck8cxx1gygbhqczc9k"))))
147 (build-system gnu-build-system)
148 (native-inputs (list pkg-config))
149 (propagated-inputs (list libcdio))
150 (home-page "https://www.gnu.org/software/libcdio/")
151 (synopsis "Jitter- and error-tolerant CD audio extraction")
153 "libcdio-paranoia is an implementation of CD paranoia libraries based on
157 ;; Xorriso is used by Guix for creating ISO images. If you change this package,
158 ;; please make sure the Guix functionality still works by running some related
160 ;; For example, try running `make check-system TESTS=iso-image-installer`.
161 (define-public xorriso
165 (outputs '("out" "gui"))
168 (uri (string-append "mirror://gnu/xorriso/xorriso-"
172 "1rqpzj95f70jfwpn4lamasfgqpizjsipz12aprdhri777b4zas9v"))))
173 (build-system gnu-build-system)
176 (modify-phases %standard-phases
177 (add-after 'install 'install-frontends
178 (lambda* (#:key outputs #:allow-other-keys)
179 (let* ((out (assoc-ref outputs "out"))
180 (out-bin (string-append out "/bin")))
181 (install-file "frontend/grub-mkrescue-sed.sh" out-bin)
183 (add-after 'install 'move-gui-to-separate-output
184 (lambda* (#:key outputs #:allow-other-keys)
185 (let ((out (assoc-ref outputs "out"))
186 (gui (assoc-ref outputs "gui")))
189 (mkdir-p (string-append gui (dirname file)))
190 (rename-file (string-append out file)
191 (string-append gui file)))
192 (list "/bin/xorriso-tcltk"
193 "/share/info/xorriso-tcltk.info"
194 "/share/man/man1/xorriso-tcltk.1"))
195 (wrap-program (string-append gui "/bin/xorriso-tcltk")
196 `("PATH" ":" prefix (,(string-append out "/bin"))))
199 (list acl readline tk zlib))
200 (home-page "https://www.gnu.org/software/xorriso/")
201 (synopsis "Create, manipulate, burn ISO-9660 file systems")
203 "GNU Xorriso is a tool for copying files to and from ISO 9660 Rock
204 Ridge, a.k.a. Compact Disc File System, file systems and it allows
205 session-wise manipulation of them. It features a formatter and burner for
206 CD, DVD and BD. It can operate on existing ISO images or it can create new
207 ones. xorriso can then be used to copy files directly into or out of ISO
211 (define-public cdparanoia
217 (uri (string-append "http://downloads.xiph.org/releases/"
218 "cdparanoia/cdparanoia-III-"
222 "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"))
223 (patches (search-patches "cdparanoia-fpic.patch"))
224 (modules '((guix build utils)))
227 ;; Make libraries respect LDFLAGS.
228 (substitute* '("paranoia/Makefile.in" "interface/Makefile.in")
229 (("-Wl,-soname") "$(LDFLAGS) -Wl,-soname"))))))
230 (build-system gnu-build-system)
232 `(#:tests? #f ; there is no check target
233 #:parallel-build? #f ;randomly fails to link
234 #:configure-flags ; Add $libdir to the RUNPATH of all the executables.
235 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
236 ;; Building in parallel is flaky: “ld: […]/cachetest.c:393: undefined
237 ;; reference to `paranoia_free'”.
238 #:parallel-build? #f))
239 (home-page "https://www.xiph.org/paranoia/")
240 (synopsis "Audio CD reading utility")
241 (description "Cdparanoia retrieves audio tracks from CDDA capable CDROM
242 drives. The data can be saved to a file or directed to standard output
243 in WAV, AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several
244 proprietary CDROM drive makes are supported; cdparanoia can determine if the
245 target drive is CDDA capable. In addition to simple reading, cdparanoia adds
246 extra-robust data verification, synchronization, error handling and scratch
247 reconstruction capability.")
248 (license gpl2))) ; libraries under lgpl2.1
250 (define-public cdrdao
258 (url "https://github.com/cdrdao/cdrdao")
260 (string-append "rel_" (string-replace-substring version "." "_")))))
261 (file-name (git-file-name name version))
263 (base32 "1gcl8ibyylamy2d1piq3749nw3xrlp12r0spzp2gmni57b8a6b7j"))))
264 (build-system gnu-build-system)
268 ;; GCDMaster depends on obsolete libgnomeuimm, see
269 ;; <https://github.com/cdrdao/cdrdao/issues/3>.
270 "--without-gcdmaster"
271 ;; Use the native SCSI interface.
274 (modify-phases %standard-phases
275 (add-before 'bootstrap 'fix-configure.ac
277 ;; Remove reference to missing macro.
278 (substitute* "configure.ac" (("^AM_GCONF_SOURCE_2.*") ""))
281 (list autoconf automake pkg-config))
283 (list ao lame libmad libvorbis))
284 (home-page "http://cdrdao.sourceforge.net")
285 (synopsis "Read and write CDs in disk-at-once mode")
286 (description "cdrdao records audio or data CDs in disk-at-once (DAO) mode,
287 based on a textual description of the contents. This mode writes the complete
288 disc – lead-in, one or more tracks, and lead-out – in a single step and is
289 commonly used with audio CDs. @code{cdrdao} can also handle the bin/cue
290 format, commonly used for VCDs or disks with subchannel data.")
293 (define-public cdrtools
300 "mirror://sourceforge/cdrtools/cdrtools-" version ".tar.bz2"))
303 "03w6ypsmwwy4d7vh6zgwpc60v541vc5ywp8bdb758hbc4yv2wa7d"))
304 (modules '((guix build utils)))
307 ;; By default 'cdda2wav --help' would print a string like
308 ;; "Version 3.01_linux_4.19.10-gnu_x86_64_x86_64". Change
309 ;; it to not capture the kernel version of the build
310 ;; machine, to allow for reproducible builds.
311 (substitute* "cdda2wav/local.cnf.in"
314 "actual_os := $(shell uname -o)\n"
315 "actual_arch := $(shell uname -m)\n"
316 "VERSION_OS = _$(actual_os)_$(actual_arch)\n")))))
317 (patches (search-patches "cdrtools-3.01-mkisofs-isoinfo.patch"))))
318 (build-system gnu-build-system)
319 ;; XXX cdrtools bundles a modified, relicensed early version of cdparanoia.
322 #~(list "RM=rm" "LN=ln" "SYMLINK=ln -s"
324 (string-append "CCOM=" #$(cc-for-target))
326 (string-append "INS_BASE=" #$output)
327 (string-append "INS_RBASE=" #$output))
328 ;; Parallel builds appear to be unsafe, see
329 ;; https://hydra.gnu.org/build/3346840/log/raw
332 #~(modify-phases %standard-phases
334 (add-before 'build 'set-linux-headers
336 (substitute* "autoconf/configure"
338 (assoc-ref %build-inputs "kernel-headers")))))
339 (add-before 'build 'avoid-bogus-RPATH-entry
341 (substitute* (append (find-files "DEFAULTS" "^Defaults\\.")
342 (find-files "DEFAULTS_ENG" "^Defaults\\.")
343 (find-files "TEMPLATES" "^Defaults\\."))
346 #:tests? #f)) ; no tests
347 (synopsis "Command line utilities to manipulate and burn CD/DVD/BD images")
348 (description "cdrtools is a collection of command line utilities to create
349 CD's, DVD's or Blue Ray discs. The most important components are
350 @command{cdrecord}, a burning program, @command{cdda2wav}, a CD audio ripper
351 which uses libparanoia, and @command{mkisofs}, which can create various disc
353 (home-page "http://cdrtools.sourceforge.net/private/cdrecord.html")
355 ;; mkisofs is GPL, the other programs are CDDL.
356 (license (list cddl1.0 gpl2))))
358 (define-public dvd+rw-tools
360 (name "dvd+rw-tools")
365 "http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-"
369 "1jkjvvnjcyxpql97xjjx0kwvy70kxpiznr2zpjy2hhci5s10zmpq"))
370 (patches (search-patches "dvd+rw-tools-add-include.patch"))))
371 (build-system gnu-build-system)
377 `(#:tests? #f ; No tests.
379 (modify-phases %standard-phases
380 (add-after 'unpack 'fix-glibc-compatability
381 (lambda* (#:key inputs #:allow-other-keys)
382 ;; We use sed --in-place because substitute* cannot handle the
383 ;; character encoding used by growisofs.c.
384 (invoke "sed" "-i" "-e"
387 "<sys/stat.h>\\\n#include <sys/sysmacros.h>,")
390 (lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t))
391 (add-before 'build 'embed-mkisofs
392 (lambda* (#:key inputs #:allow-other-keys)
393 ;; We use sed --in-place because substitute* cannot handle the
394 ;; character encoding used by growisofs.c.
395 (invoke "sed" "-i" "-e"
398 "\"" (which "mkisofs") "\",")
400 (home-page "http://fy.chalmers.se/~appro/linux/DVD+RW/")
401 (synopsis "DVD and Blu-ray Disc burning tools")
402 (description "dvd+rw-tools, mostly known for its command
403 @command{growisofs}, is a collection of DVD and Blu-ray Disc burning tools.
404 It requires another program, such as @command{mkisofs}, @command{genisoimage},
405 or @command{xorrisofs} to create ISO 9660 images.")
408 (define-public dvdisaster
415 (uri (string-append "https://dvdisaster.jcea.es/downloads/dvdisaster-"
418 (base32 "1hz3fvqfdrwb7dn6ggqkpcgyjag37ivm1layw27ncjz9glklxjbr"))))
419 (build-system gnu-build-system)
423 `(("gettext" ,gettext-minimal)
424 ("pkg-config" ,pkg-config)
427 `(;; Parallel builds appear to be unsafe, see
428 ;; <http://hydra.gnu.org/build/49331/nixlog/1/raw>.
431 (modify-phases %standard-phases
434 (with-directory-excursion "regtest"
435 (substitute* "common.bash"
436 (("ISODIR=/var/tmp/regtest") "ISODIR=/tmp"))
437 (for-each invoke (find-files "." "rs.*\\.bash")))))
438 (add-after 'install 'install-desktop
439 (lambda* (#:key outputs #:allow-other-keys)
440 (let* ((datadir (string-append (assoc-ref outputs "out") "/share")))
441 (substitute* "contrib/dvdisaster.desktop"
442 (("dvdisaster48.png") "dvdisaster.png"))
443 (install-file "contrib/dvdisaster.desktop"
444 (string-append datadir "/applications"))
447 (let* ((size (substring png
448 (string-index png char-set:digit)
449 (string-rindex png #\.)))
450 (icondir (string-append datadir "/icons/"
451 size "x" size "/apps")))
453 (copy-file png (string-append icondir "/dvdisaster.png"))))
454 (find-files "contrib" "dvdisaster[0-9]*\\.png"))
455 (mkdir-p (string-append datadir "/pixmaps"))
456 (copy-file "contrib/dvdisaster48.xpm"
457 (string-append datadir "/pixmaps/dvdisaster.xpm")))))
458 (add-after 'install 'remove-uninstall-script
459 (lambda* (#:key outputs #:allow-other-keys)
460 (let* ((out (assoc-ref outputs "out")))
462 (string-append out "/bin/dvdisaster-uninstall.sh"))))))))
463 (home-page "https://dvdisaster.jcea.es/")
464 (synopsis "Error correcting codes for optical media images")
465 (description "Optical media (CD,DVD,BD) keep their data only for a
466 finite time (typically for many years). After that time, data loss develops
467 slowly with read errors growing from the outer media region towards the
470 Dvdisaster stores data on CD/DVD/BD (supported media) in a way that it is
471 fully recoverable even after some read errors have developed. This enables
472 you to rescue the complete data to a new medium.
474 Data loss is prevented by using error correcting codes. Error correction
475 data is either added to the medium or kept in separate error correction
476 files. Dvdisaster works at the image level so that the recovery does not
477 depend on the file system of the medium. The maximum error correction
478 capacity is user-selectable.")
481 (define-public dvdstyler
488 (uri (string-append "mirror://sourceforge/dvdstyler/dvdstyler/"
489 version "/DVDStyler-" version ".tar.bz2"))
492 "0lwc0hn94m9r8fi07sjqz3fr618l6lnw3zsakxw7nlgnxbjsk7pi"))))
493 (build-system gnu-build-system)
496 (list (string-append "XMLTO="
497 (assoc-ref %build-inputs "xmlto")
498 "/bin/xmlto --searchpath "
499 (assoc-ref %build-inputs "docbook-xsl")
500 "/xml/xsl/docbook-xsl-" ,(package-version docbook-xsl)
502 (assoc-ref %build-inputs "docbook-xml")
505 (modify-phases %standard-phases
506 (add-after 'install 'wrap-program
507 (lambda* (#:key inputs outputs #:allow-other-keys)
508 (wrap-program (string-append (assoc-ref outputs "out") "/bin/dvdstyler")
511 (map (lambda (in) (string-append (assoc-ref inputs in) "/bin"))
512 '("cdrtools" "dvdauthor" "dvd+rw-tools" "ffmpeg"))
515 #:tests? #f)) ; No tests.
516 (inputs ; TODO package bundled wxvillalib
517 `(("wxwidgets" ,wxwidgets-3.1)
520 ("cdrtools" ,cdrtools)
521 ("dvd+rw-tools" ,dvd+rw-tools)
522 ("dvdauthor" ,dvdauthor)
524 ("fontconfig" ,fontconfig)
526 ("libjpeg" ,libjpeg-turbo)
527 ("ffmpeg" ,ffmpeg-3.4)))
529 `(("pkg-config" ,pkg-config)
533 ("gettext" ,gettext-minimal)
534 ("docbook-xml" ,docbook-xml)
535 ("docbook-xsl" ,docbook-xsl)
537 (synopsis "DVD authoring application")
538 (description "DVDStyler is a DVD authoring application which allows users
539 to burn video files in many formats to DVD discs, complete with individually
540 designed menus. It can be used to create professional-looking DVD's with
541 custom buttons, backgrounds and animations, from within a user-friendly
542 graphical interface.")
543 (home-page "https://www.dvdstyler.org")
546 (define-public libcue
553 (url "https://github.com/lipnitsk/libcue")
554 (commit (string-append "v" version))))
555 (file-name (git-file-name name version))
558 "1iqw4n01rv2jyk9lksagyxj8ml0kcfwk67n79zy1r6zv1xfp5ywm"))))
559 (build-system cmake-build-system)
561 `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
564 (home-page "https://github.com/lipnitsk/libcue")
565 (synopsis "C library to parse cue sheets")
566 (description "Libcue is a C library to parse so-called @dfn{cue sheets}
567 which contain meta-data for CD/DVD tracks. It provides an API to manipulate
571 (define-public cd-discid
575 (home-page "http://linukz.org/cd-discid.shtml")
578 (uri (string-append "http://linukz.org/download/cd-discid-"
582 "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz"))
583 (modules '((guix build utils)))
586 (substitute* "Makefile"
587 (("/usr/bin/install")
590 (build-system gnu-build-system)
593 #:phases (modify-phases %standard-phases (delete 'configure))
594 #:make-flags (list ,(string-append "CC=" (cc-for-target))
595 (string-append "PREFIX="
596 (assoc-ref %outputs "out")))))
597 (synopsis "Get CDDB discid information from an audio CD")
599 "cd-discid is a command-line tool to retrieve CDDB discid information
607 (home-page "https://abcde.einval.com/")
610 (uri (string-append home-page "/download/abcde-"
614 "091ip2iwb6b67bhjsj05l0sxyq2whqjycbzqpkfbpm4dlyxx0v04"))
615 (modules '((guix build utils)))
618 (substitute* "Makefile"
619 (("/usr/bin/install")
622 (build-system gnu-build-system)
625 (modify-phases %standard-phases
627 (lambda* (#:key outputs inputs #:allow-other-keys)
628 (substitute* "Makefile"
630 (string-append "prefix = "
631 (assoc-ref outputs "out")
633 (("^sysconfdir = .*$")
634 (string-append "sysconfdir = "
635 (assoc-ref outputs "out")
638 (add-after 'install 'wrap
639 (lambda* (#:key inputs outputs #:allow-other-keys)
640 (let ((wget (assoc-ref inputs "wget"))
641 (vorbis (assoc-ref inputs "vorbis-tools"))
642 (parano (assoc-ref inputs "cdparanoia"))
643 (which (assoc-ref inputs "which"))
644 (discid (assoc-ref inputs "cd-discid"))
645 (perl-discid (assoc-ref inputs "perl-musicbrainz-discid"))
646 (perl-ws (assoc-ref inputs "perl-webservice-musicbrainz"))
647 (perl-mojo (assoc-ref inputs "perl-mojolicious"))
648 (flac (assoc-ref inputs "flac"))
649 (out (assoc-ref outputs "out")))
653 (,(string-append out "/bin:"
660 `("PERL5LIB" ":" prefix
661 (,(string-append perl-discid
662 "/lib/perl5/site_perl:"
664 "/lib/perl5/site_perl:"
666 "/lib/perl5/site_perl")))))
669 (find-files (string-append out "/bin")
672 #:tests? #f)) ; no test target
680 perl-musicbrainz-discid
681 perl-webservice-musicbrainz
682 perl-mojolicious ;indirect dependency
683 ;; A couple of Python and Perl scripts are included.
687 (synopsis "Command-line audio CD ripper")
689 "abcde is a front-end command-line utility (actually, a shell script)
690 that grabs tracks off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex
691 and/or MPP/MP+ (Musepack) format, and tags them, all in one go.")
694 (define-public geteltorito
699 "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/")
702 (uri (string-append home-page name "-" version ".tar.gz"))
705 "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv"))))
706 (build-system gnu-build-system)
708 `(#:tests? #f ; No tests.
710 (modify-phases %standard-phases
714 (lambda* (#:key outputs #:allow-other-keys)
715 (let ((out (assoc-ref outputs "out")))
716 (install-file "geteltorito"
717 (string-append out "/bin"))))))))
719 (synopsis "Extract the boot image from a CD-ROM")
721 "@command{geteltorito} can extract the initial/default boot
722 image from CDs (and ISOs) that follow the El Torito specification
723 for bootable CD-ROMs.
725 Image data is written to standard output by default and all other
726 information is written to standard error.")
729 (define-public asunder
737 (string-append "http://www.littlesvr.ca/asunder/releases/asunder-"
740 (base32 "1x3l308ss0iqhz90qyjb94gyd8b4piyrm2nzjmg5kf049k9prjf1"))))
741 (build-system glib-or-gtk-build-system)
743 '(#:out-of-source? #f
744 #:phases (modify-phases %standard-phases
745 (add-after 'install 'wrap
746 (lambda* (#:key inputs outputs #:allow-other-keys)
747 (let ((program (string-append (assoc-ref outputs "out")
749 (define (bin-directory input-name)
750 (string-append (assoc-ref inputs input-name) "/bin"))
751 (wrap-program program
753 ,(map bin-directory (list "cdparanoia"
759 (native-inputs (list intltool pkg-config))
760 ;; TODO: Add the necessary packages for Musepack encoding.
761 (inputs `(("gtk+-2" ,gtk+-2)
764 ("cdparanoia" ,cdparanoia)
766 ("vorbis-tools" ,vorbis-tools)
768 ("opus-tools" ,opus-tools)
769 ("wavpack" ,wavpack)))
770 (home-page "http://www.littlesvr.ca/asunder/")
771 (synopsis "Graphical audio CD ripper and encoder")
773 "Asunder is a graphical audio CD ripper and encoder. It can save audio
774 tracks as WAV, MP3, Ogg Vorbis, FLAC, Opus, Wavpack, and Musepack. It can use
775 CDDB to name and tag each track automatically, and it allows for each track to
776 be by a different artist. Asunder can encode to multiple formats in one
777 session, and it can create M3U playlists.")
787 ;; The original suwald.com domain has expired.
789 (string-append "https://web.archive.org/web/20160327050927/"
790 "http://suwald.com/ripit/ripit-" version ".tar.gz")
791 (string-append "https://ponce.cc/slackware/sources/repo/ripit-"
794 (base32 "0ap71x477jy9c4jiqazb3y45hxdxm3jbq24x05g3vjyqzigi4x1b"))))
795 (build-system gnu-build-system)
797 `(#:tests? #f ; no test suite
799 (modify-phases %standard-phases
801 (add-after 'unpack 'patch-usr-bin-install
802 (lambda* (#:key inputs outputs #:allow-other-keys)
803 (substitute* "Makefile"
804 (("/usr/bin/install") (string-append
805 (assoc-ref inputs "coreutils")
807 (("\\$\\(DESTDIR\\)/usr/local") (assoc-ref outputs "out"))
808 (("../../etc") "etc")))))))
814 (list cdparanoia flac vorbis-tools wavpack perl-cddb-get))
815 (home-page (string-append "https://web.archive.org/web/20170119092156/"
816 "http://www.suwald.com/ripit/about.php"))
817 (synopsis "Command-line program to extract audio CDs")
818 (description "RipIT is used to extract audio from CDs.")
821 (define-public ccd2cue
829 "mirror://gnu/ccd2cue/ccd2cue-" version
833 "1icrkg25hwx4gsn3dski2172ia4ywjh8m1sa17zmjclnrgdwy9c7"))))
834 (build-system gnu-build-system)
835 (synopsis "CCD to CUE sheet conversion")
837 "GNU ccd2cue is a preprocessor for CD burning software that allows
838 the conversion of the proprietary CCD format to the CUE format, which
839 is well-supported by free software. These files are commonly
840 distributed with CD images and are used to describe how tracks are
841 laid out on the image.")
842 (home-page "https://www.gnu.org/software/ccd2cue/")
845 (define-public libburn
851 (uri (string-append "http://files.libburnia-project.org/releases/"
852 "libburn-" version ".tar.gz"))
855 "0m1vyry6pi115nysfgb0cg313qqhnlxqdg7f920wpiar0z8mjl2j"))))
856 (build-system gnu-build-system)
859 (home-page "https://dev.lovelyhq.com/libburnia/libburn")
860 (synopsis "Library for reading and writing optical discs")
862 "Libburn is a library for reading and writing optical discs.
863 Supported media are: CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL,
864 DVD-RW, DVD-R, DVD-R/DL, BD-R, and BD-RE.")
867 (define-public libisofs
873 (uri (string-append "http://files.libburnia-project.org/releases/"
874 "libisofs-" version ".tar.gz"))
877 "13m82l13cb5d7ca53dv3akma1jr9gw0hnnshdwqpj6ahly0fv85a"))))
878 (build-system gnu-build-system)
883 (home-page "https://dev.lovelyhq.com/libburnia/libisofs")
884 (synopsis "Library to create ISO 9660 images")
886 "Libisofs creates ISO 9660 (also known as ECMA-119) file system images
887 which can either be written to POSIX file objects or handed over to
888 libburn for being written directly to optical media.
889 It can read metadata of ISO 9660 filesystems, manipulate them, and use them
890 to produce new complete file system images or add-on images to be appended
891 to the read file system image.
892 Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
895 (define-public cdrkit-libre
897 (name "cdrkit-libre")
901 ;; cdrkit.org is dead.
903 ;; ‘cdrkit-libre’ removes a couple of problematic files,
904 ;; see <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32165#14>.
906 "https://repo.parabola.nu/other/cdrkit-libre/cdrkit-libre-"
910 "0g2zyzb56czh429qy87lvaddzjnlcq8c616ddxsmsshz3clhyzrh"))
911 (patches (search-patches "cdrkit-libre-cross-compile.patch"))
912 (modules '((guix build utils)))
915 ;; Fix building with gcc-10.
916 (substitute* "genisoimage/genisoimage.h"
917 (("char\t\t\\*outfile")
918 "extern char\t*outfile"))))))
919 (build-system cmake-build-system)
921 (list bzip2 libcap perl zlib))
923 `(#:tests? #f ;no tests
925 (modify-phases %standard-phases
926 (add-after 'install 'old-cdrecord
927 (lambda* (#:key outputs #:allow-other-keys)
928 (with-directory-excursion (string-append (assoc-ref outputs "out")
930 (symlink "genisoimage" "mkisofs")
931 (symlink "wodim" "cdrecord"))
933 (home-page "https://repo.parabola.nu/other/cdrkit-libre/")
934 (synopsis "Command-line CD/DVD recorder")
935 (description "Cdrkit is a suite of programs for recording CDs and DVDs,
936 blanking CD-RW media, creating ISO-9660 file system images, extracting audio
937 CD data, and more. It's mostly compatible with @code{cdrtools}.")
940 (define-public libmirage
947 "mirror://sourceforge/cdemu/libmirage/libmirage-"
951 "19pjdmxhzl8y3brhg8fsv99b6jg4lfnl8jvcjgm4jmqrr684czr5"))))
952 (build-system cmake-build-system)
954 (list pkg-config intltool))
960 (home-page "https://cdemu.sourceforge.io/")
961 (synopsis "CD-ROM image access library")
962 (description "libMirage is a CD-ROM image access library. It supports the
963 following formats: B6T, C2D, CCD, CDI, CIF, CUE, ISO, MDS, MDX, NRG, TOC. It
964 is written in C and based on GLib. Its aim is to provide uniform access to
965 the data stored in various image formats.")
968 (define-public cdemu-daemon
970 (name "cdemu-daemon")
975 "mirror://sourceforge/cdemu/cdemu-daemon/"
976 "cdemu-daemon-" version ".tar.xz"))
979 "13vxhl7ik3h5qnfh6m0zxywb8qzx1n46akrm6rp19ikmxzih9r56"))))
980 (build-system cmake-build-system)
982 (list pkg-config intltool))
984 (list libmirage glib ao))
988 (home-page "https://cdemu.sourceforge.io/")
989 (synopsis "CD/DVD-ROM device emulator")
990 (description "CDemu is a software suite designed to emulate an optical
991 drive and disc (including CD-ROMs and DVD-ROMs).")
994 (define-public cdemu-client
996 (name "cdemu-client")
1001 "mirror://sourceforge/cdemu/cdemu-client/cdemu-client-"
1005 "1prrdhv0ia0axc6b73crszqzh802wlkihz6d100yvg7wbgmqabd7"))))
1006 (build-system cmake-build-system)
1008 (list pkg-config intltool))
1010 (list python python-pygobject cdemu-daemon))
1015 (modify-phases %standard-phases
1016 (add-after 'install 'patch-shebang
1017 (lambda* (#:key outputs #:allow-other-keys)
1018 (patch-shebang (string-append (assoc-ref outputs "out")
1021 (add-after 'patch-shebang 'wrap-program
1022 (lambda* (#:key outputs #:allow-other-keys)
1023 (let ((prog (string-append (assoc-ref outputs "out")
1026 `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH"))))
1028 (home-page "https://cdemu.sourceforge.io/")
1029 (synopsis "Command-line client for controlling cdemu-daemon")
1030 (description "CDEmu client is a simple command-line client for controlling
1033 It provides a way to perform the key tasks related to controlling the CDEmu
1034 daemon, such as loading and unloading devices, displaying devices' status and
1035 retrieving/setting devices' debug masks.")