libcdio-paranoia: fix darwin build

This commit is contained in:
Josef Kemetmüller 2018-03-24 17:58:06 +01:00
parent a6425fc66d
commit 285ef9be09
2 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, libcdio, pkgconfig }:
{ stdenv, fetchFromGitHub, autoreconfHook, libcdio, pkgconfig,
libiconv, IOKit, DiskArbitration}:
stdenv.mkDerivation {
name = "libcdio-paranoia-0.94+2";
@ -11,7 +12,14 @@ stdenv.mkDerivation {
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libcdio ];
buildInputs = [ libcdio ] ++
stdenv.lib.optionals stdenv.isDarwin [ libiconv IOKit DiskArbitration ];
propagatedBuildInputs = stdenv.lib.optional stdenv.isDarwin DiskArbitration;
configureFlags = stdenv.lib.optionals stdenv.isDarwin [
"--disable-ld-version-script"
];
meta = with stdenv.lib; {
description = "CD paranoia on top of libcdio";

View file

@ -9601,7 +9601,9 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Carbon IOKit;
};
libcdio-paranoia = callPackage ../development/libraries/libcdio-paranoia { };
libcdio-paranoia = callPackage ../development/libraries/libcdio-paranoia {
inherit (darwin.apple_sdk.frameworks) DiskArbitration IOKit;
};
libcdr = callPackage ../development/libraries/libcdr { lcms = lcms2; };