Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 33 lines 1.0 kB view raw
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 postPatch = '' 12 patchShebangs . 13 ''; 14 15 nativeBuildInputs = [ pkgconfig ]; 16 buildInputs = [ libcddb ncurses help2man ] 17 ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Carbon IOKit ]; 18 19 doCheck = true; 20 21 meta = with stdenv.lib; { 22 description = "A library for OS-independent CD-ROM and CD image access"; 23 longDescription = '' 24 GNU libcdio is a library for OS-independent CD-ROM and 25 CD image access. It includes a library for working with 26 ISO-9660 filesystems (libiso9660), as well as utility 27 programs such as an audio CD player and an extractor. 28 ''; 29 homepage = https://www.gnu.org/software/libcdio/; 30 license = licenses.gpl2Plus; 31 platforms = platforms.linux ++ platforms.darwin; 32 }; 33}