From abae2e9fb0aae5870bb0d4fa3b2ea871d41aa5be Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Thu, 15 Jul 2021 18:47:38 +0100 Subject: [PATCH] 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 --- pkgs/development/libraries/portaudio/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/portaudio/default.nix b/pkgs/development/libraries/portaudio/default.nix index 7f5818ae1bbb..840c9e773f49 100644 --- a/pkgs/development/libraries/portaudio/default.nix +++ b/pkgs/development/libraries/portaudio/default.nix @@ -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 ];