mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
portaudio: use implicit apple-sdk pattern
This commit is contained in:
parent
d6ccd2835b
commit
d81b4fe176
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user