1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libcdio, pkg-config,
2 libiconv, IOKit, DiskArbitration}:
4 stdenv.mkDerivation rec {
5 pname = "libcdio-paranoia";
8 src = fetchFromGitHub {
10 repo = "libcdio-paranoia";
11 rev = "release-10.2+${version}";
12 sha256 = "1wjgmmaca4baw7k5c3vdap9hnjc49ciagi5kvpvync3aqfmdvkha";
15 nativeBuildInputs = [ autoreconfHook pkg-config ];
16 buildInputs = [ libcdio ] ++
17 lib.optionals stdenv.isDarwin [ libiconv IOKit DiskArbitration ];
19 propagatedBuildInputs = lib.optional stdenv.isDarwin DiskArbitration;
21 configureFlags = lib.optionals stdenv.isDarwin [
22 "--disable-ld-version-script"
26 description = "CD paranoia on top of libcdio";
28 This is a port of xiph.org's cdda paranoia to use libcdio for CDROM
29 access. By doing this, cdparanoia runs on platforms other than GNU/Linux.
31 homepage = "https://github.com/rocky/libcdio-paranoia";
32 license = licenses.gpl3;
34 mainProgram = "cd-paranoia";
35 platforms = platforms.linux ++ platforms.darwin;