cdparanoia: fix Darwin build

Fixes #12116
This commit is contained in:
Benjamin Staffin 2016-01-03 15:49:09 -08:00
parent 52f2d9ffc8
commit 9f3889a9a5
2 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, IOKit, Carbon }:
stdenv.mkDerivation rec {
name = "cdparanoia-III-10.2";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
preConfigure = "unset CC";
patches = stdenv.lib.optionals stdenv.isDarwin [
patches = stdenv.lib.optionals stdenv.isDarwin [
(fetchurl {
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch";
sha1 = "c86e573f51e6d58d5f349b22802a7a7eeece9fcd";
@ -21,6 +21,11 @@ stdenv.mkDerivation rec {
})
];
buildInputs = stdenv.lib.optional stdenv.isDarwin [
Carbon
IOKit
];
meta = {
homepage = http://xiph.org/paranoia;
description = "A tool and library for reading digital audio from CDs";

View File

@ -11222,7 +11222,10 @@ let
cdparanoia = cdparanoiaIII;
cdparanoiaIII = callPackage ../applications/audio/cdparanoia { };
cdparanoiaIII = callPackage ../applications/audio/cdparanoia {
inherit (darwin) IOKit;
inherit (darwin.apple_sdk.frameworks) Carbon;
};
cdrtools = callPackage ../applications/misc/cdrtools { };