1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libcdio, pkg-config,
2 libiconv, IOKit, DiskArbitration}:
5 name = "libcdio-paranoia-0.94+2";
7 src = fetchFromGitHub {
9 repo = "libcdio-paranoia";
10 rev = "release-10.2+0.94+2";
11 sha256 = "1wjgmmaca4baw7k5c3vdap9hnjc49ciagi5kvpvync3aqfmdvkha";
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15 buildInputs = [ libcdio ] ++
16 lib.optionals stdenv.isDarwin [ libiconv IOKit DiskArbitration ];
18 propagatedBuildInputs = lib.optional stdenv.isDarwin DiskArbitration;
20 configureFlags = lib.optionals stdenv.isDarwin [
21 "--disable-ld-version-script"
25 description = "CD paranoia on top of libcdio";
27 This is a port of xiph.org's cdda paranoia to use libcdio for CDROM
28 access. By doing this, cdparanoia runs on platforms other than GNU/Linux.
30 license = licenses.gpl3;
31 homepage = "https://github.com/rocky/libcdio-paranoia";
32 platforms = platforms.linux ++ platforms.darwin;