openal: fix darwin builds

This commit is contained in:
Matthew Bauer 2016-02-29 12:47:12 -06:00
parent f3336a122a
commit d085a649c2
2 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,7 @@
{ stdenv, fetchurl, cmake
, alsaSupport ? true, alsaLib ? null
, pulseSupport ? true, libpulseaudio ? null
, alsaSupport ? !stdenv.isDarwin, alsaLib ? null
, pulseSupport ? !stdenv.isDarwin, libpulseaudio ? null
, CoreServices, AudioUnit, AudioToolbox
}:
with stdenv.lib;
@ -19,7 +20,8 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake ]
++ optional alsaSupport alsaLib
++ optional pulseSupport libpulseaudio;
++ optional pulseSupport libpulseaudio
++ optional stdenv.isDarwin [ CoreServices AudioUnit AudioToolbox ];
NIX_LDFLAGS = []
++ optional alsaSupport "-lasound"
@ -30,5 +32,6 @@ stdenv.mkDerivation rec {
homepage = http://kcat.strangesoft.net/openal.html;
license = licenses.lgpl2;
maintainers = with maintainers; [ftrvxmtrx];
platforms = platforms.unix;
};
}

View file

@ -8221,7 +8221,9 @@ let
oniguruma = callPackage ../development/libraries/oniguruma { };
openal = openalSoft;
openalSoft = callPackage ../development/libraries/openal-soft { };
openalSoft = callPackage ../development/libraries/openal-soft {
inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit AudioToolbox;
};
openbabel = callPackage ../development/libraries/openbabel { };