depot/third_party/nixpkgs/pkgs/development/libraries/libcdio-paranoia/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

37 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, libcdio, pkg-config,
libiconv, IOKit, DiskArbitration}:
stdenv.mkDerivation rec {
pname = "libcdio-paranoia";
version = "2.0.1";
src = fetchFromGitHub {
owner = "rocky";
repo = "libcdio-paranoia";
rev = "release-10.2+${version}";
hash = "sha256-kNGhhslp5noAVeho0kBVfyvb4kQpDY56nyL3a4aFgjE=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libcdio ] ++
lib.optionals stdenv.isDarwin [ libiconv IOKit DiskArbitration ];
propagatedBuildInputs = lib.optional stdenv.isDarwin DiskArbitration;
configureFlags = lib.optionals stdenv.isDarwin [
"--disable-ld-version-script"
];
meta = with lib; {
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";
license = licenses.gpl3;
maintainers = [ ];
mainProgram = "cd-paranoia";
platforms = platforms.unix;
};
}