diff --git a/pkgs/development/libraries/openal-soft/default.nix b/pkgs/development/libraries/openal-soft/default.nix index ff29b2741fbd..4a466ad133ac 100644 --- a/pkgs/development/libraries/openal-soft/default.nix +++ b/pkgs/development/libraries/openal-soft/default.nix @@ -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; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d014ba393406..ed5bf87643d3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };