portaudio: fix build for arm64-darwin

Hydra failed to build portaudio against the MacOS SDK 11.0, see [1]. The
errors stem from the fact that certain functions in the SDK have been
marked as depricated. When building locally on my machine (which uses a
newer SDK version) there are no such errors. Therefore, until we get
 #101229 fixed we can ignore these deprication errors.

[1]: https://hydra.nixos.org/build/147771864/nixlog/1
This commit is contained in:
Matthew Leach
2021-07-15 18:52:43 +01:00
parent b466d6c702
commit abae2e9fb0
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-mac-universal" "--enable-cxx" ];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-const-int-float-conversion -Wno-error=nullability-completeness-on-arrays";
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=deprecated-declarations -Wno-error=implicit-const-int-float-conversion -Wno-error=nullability-completeness-on-arrays";
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ AudioUnit AudioToolbox CoreAudio CoreServices Carbon ];