2018-03-12 13:32:38 -07:00
|
|
|
{ stdenv, fetchurl, libcddb, pkgconfig, ncurses, help2man, libiconv, Carbon, IOKit }:
|
2008-03-05 01:10:23 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-30 23:10:09 -07:00
|
|
|
name = "libcdio-2.1.0";
|
2017-01-24 13:45:08 -08:00
|
|
|
|
2008-03-05 01:10:23 -08:00
|
|
|
src = fetchurl {
|
2014-10-07 12:17:46 -07:00
|
|
|
url = "mirror://gnu/libcdio/${name}.tar.bz2";
|
2019-04-30 23:10:09 -07:00
|
|
|
sha256 = "0avi6apv5ydjy6b9c3z9a46rvp5i57qyr09vr7x4nndxkmcfjl45";
|
2008-03-05 01:10:23 -08:00
|
|
|
};
|
|
|
|
|
2018-08-10 04:09:58 -07:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libcddb ncurses help2man ]
|
2018-03-12 13:32:38 -07:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Carbon IOKit ];
|
2008-03-05 01:10:23 -08:00
|
|
|
|
2019-03-18 21:21:03 -07:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2008-03-27 08:27:30 -07:00
|
|
|
|
2017-01-24 13:45:08 -08:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-16 12:23:25 -07:00
|
|
|
description = "A library for OS-independent CD-ROM and CD image access";
|
2008-04-22 00:57:31 -07:00
|
|
|
longDescription = ''
|
2014-12-29 18:31:03 -08:00
|
|
|
GNU libcdio is a library for OS-independent CD-ROM and
|
2008-04-22 00:57:31 -07:00
|
|
|
CD image access. It includes a library for working with
|
|
|
|
ISO-9660 filesystems (libiso9660), as well as utility
|
|
|
|
programs such as an audio CD player and an extractor.
|
|
|
|
'';
|
2018-12-01 10:22:13 -08:00
|
|
|
homepage = https://www.gnu.org/software/libcdio/;
|
2017-01-24 13:45:08 -08:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2008-03-05 01:10:23 -08:00
|
|
|
};
|
|
|
|
}
|