2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libcdio, pkg-config,
|
2018-03-24 16:58:06 +00:00
|
|
|
libiconv, IOKit, DiskArbitration}:
|
2018-03-04 18:28:55 +00:00
|
|
|
|
2021-11-09 21:14:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcdio-paranoia";
|
|
|
|
version = "0.94+2";
|
2018-03-04 18:28:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rocky";
|
|
|
|
repo = "libcdio-paranoia";
|
2021-11-09 21:14:04 +00:00
|
|
|
rev = "release-10.2+${version}";
|
2018-03-04 18:28:55 +00:00
|
|
|
sha256 = "1wjgmmaca4baw7k5c3vdap9hnjc49ciagi5kvpvync3aqfmdvkha";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-03-24 16:58:06 +00:00
|
|
|
buildInputs = [ libcdio ] ++
|
2021-01-21 17:00:13 +00:00
|
|
|
lib.optionals stdenv.isDarwin [ libiconv IOKit DiskArbitration ];
|
2018-03-24 16:58:06 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
propagatedBuildInputs = lib.optional stdenv.isDarwin DiskArbitration;
|
2018-03-24 16:58:06 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
configureFlags = lib.optionals stdenv.isDarwin [
|
2018-03-24 16:58:06 +00:00
|
|
|
"--disable-ld-version-script"
|
|
|
|
];
|
2018-03-04 18:28:55 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-03-04 18:28:55 +00:00
|
|
|
description = "CD paranoia on top of libcdio";
|
|
|
|
longDescription = ''
|
|
|
|
This is a port of xiph.org's cdda paranoia to use libcdio for CDROM
|
|
|
|
access. By doing this, cdparanoia runs on platforms other than GNU/Linux.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rocky/libcdio-paranoia";
|
2022-05-05 00:52:27 +00:00
|
|
|
license = licenses.gpl3;
|
2020-02-09 09:50:54 +00:00
|
|
|
maintainers = [ ];
|
2022-05-05 00:52:27 +00:00
|
|
|
mainProgram = "cd-paranoia";
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-03-04 18:28:55 +00:00
|
|
|
};
|
|
|
|
}
|