portaudio: use implicit apple-sdk pattern

This commit is contained in:
Matteo Pacini 2024-11-03 11:02:51 +00:00
parent d6ccd2835b
commit d81b4fe176
2 changed files with 5 additions and 11 deletions

View File

@ -5,11 +5,7 @@
, libjack2
, pkg-config
, which
, AudioUnit
, AudioToolbox
, CoreAudio
, CoreServices
, Carbon }:
}:
stdenv.mkDerivation rec {
pname = "portaudio";
@ -22,14 +18,14 @@ stdenv.mkDerivation rec {
strictDeps = true;
nativeBuildInputs = [ pkg-config which ];
buildInputs = [ libjack2 ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform alsa-lib) [ alsa-lib ];
buildInputs =
[ libjack2 ]
++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform alsa-lib) [ alsa-lib ];
configureFlags = [ "--disable-mac-universal" "--enable-cxx" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=nullability-inferred-on-nested-type -Wno-error=nullability-completeness-on-arrays -Wno-error=implicit-const-int-float-conversion";
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ AudioUnit AudioToolbox CoreAudio CoreServices Carbon ];
# Disable parallel build as it fails as:
# make: *** No rule to make target '../../../lib/libportaudio.la',
# needed by 'libportaudiocpp.la'. Stop.

View File

@ -22445,9 +22445,7 @@ with pkgs;
popt = callPackage ../development/libraries/popt { };
portaudio = callPackage ../development/libraries/portaudio {
inherit (darwin.apple_sdk.frameworks) AudioToolbox AudioUnit CoreAudio CoreServices Carbon;
};
portaudio = callPackage ../development/libraries/portaudio { };
portmidi = callPackage ../development/libraries/portmidi {
inherit (darwin.apple_sdk.frameworks) Carbon CoreAudio CoreFoundation CoreMIDI CoreServices;