1{ stdenv, fetchurl, libcddb, pkgconfig, ncurses, help2man, libiconv, Carbon, IOKit }:
2
3stdenv.mkDerivation rec {
4 name = "libcdio-2.0.0";
5
6 src = fetchurl {
7 url = "mirror://gnu/libcdio/${name}.tar.bz2";
8 sha256 = "0jr8ppdm80c533nzmrpz3iffnpc6nhvsria1di9f4jg1l19a03fd";
9 };
10
11 nativeBuildInputs = [ pkgconfig ];
12 buildInputs = [ libcddb ncurses help2man ]
13 ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Carbon IOKit ];
14
15 # Disabled due to several spurious test failures.
16 # doCheck = true;
17
18 meta = with stdenv.lib; {
19 description = "A library for OS-independent CD-ROM and CD image access";
20 longDescription = ''
21 GNU libcdio is a library for OS-independent CD-ROM and
22 CD image access. It includes a library for working with
23 ISO-9660 filesystems (libiso9660), as well as utility
24 programs such as an audio CD player and an extractor.
25 '';
26 homepage = http://www.gnu.org/software/libcdio/;
27 license = licenses.gpl2Plus;
28 platforms = platforms.linux ++ platforms.darwin;
29 };
30}