2024-09-26 11:04:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
|
|
|
libcdio,
|
|
|
|
pkg-config,
|
|
|
|
libiconv,
|
|
|
|
IOKit,
|
|
|
|
DiskArbitration,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcdio-paranoia";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "2.0.2";
|
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-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-n05PSVgh6z7BFPq4CjJa5DqCO7Huj8Bsg0x3HQPsbeI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs =
|
|
|
|
[ libcdio ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
libiconv
|
|
|
|
IOKit
|
|
|
|
DiskArbitration
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
propagatedBuildInputs = lib.optional stdenv.hostPlatform.isDarwin DiskArbitration;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "--disable-ld-version-script" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|