2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libcdio, pkg-config,
|
2020-04-24 23:36:52 +00:00
|
|
|
libiconv, IOKit, DiskArbitration}:
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcdio-paranoia";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rocky";
|
|
|
|
repo = "libcdio-paranoia";
|
2022-01-13 20:06:32 +00:00
|
|
|
rev = "release-10.2+${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-kNGhhslp5noAVeho0kBVfyvb4kQpDY56nyL3a4aFgjE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libcdio ] ++
|
2021-02-05 17:12:51 +00:00
|
|
|
lib.optionals stdenv.isDarwin [ libiconv IOKit DiskArbitration ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = lib.optional stdenv.isDarwin DiskArbitration;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = lib.optionals stdenv.isDarwin [
|
2020-04-24 23:36:52 +00:00
|
|
|
"--disable-ld-version-script"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/rocky/libcdio-paranoia";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = licenses.gpl3;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "cd-paranoia";
|
2023-02-09 11:40:11 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|