Merge pull request #37735 from knedlsepp/fix-libcdio-paranoia-on-darwin

libcdio-paranoia: fix darwin build
This commit is contained in:
Jörg Thalheim 2018-03-24 19:20:41 +00:00 committed by GitHub
commit 394a7099e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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; };