portaudio: fixup patches

- don't use preBuild for patching
- leave all of the tests in place (no tests are run anyway)
This commit is contained in:
Matthew Bauer 2017-01-05 13:49:44 -06:00
parent 74b206bce2
commit 2614fa1de0
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3

View File

@ -16,16 +16,12 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ AudioUnit AudioToolbox CoreAudio CoreServices Carbon ];
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i '50 i\
#include <CoreAudio/AudioHardware.h>\
#include <CoreAudio/AudioHardwareBase.h>\
#include <CoreAudio/AudioHardwareDeprecated.h>' \
include/pa_mac_core.h
# disable two tests that don't compile
sed -i -e 105d Makefile
sed -i -e 107d Makefile
'';
# not sure why, but all the headers seem to be installed by the make install