summary refs log tree commit diff
path: root/pkgs/development/libraries/portaudio
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2017-01-05 13:49:44 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2017-01-17 19:49:30 -0600
commit2614fa1de05e0dfad6ab717c9b08c55cdd6389ab (patch)
tree8abf960478d5c92cc913967b062dcd10b0901fd0 /pkgs/development/libraries/portaudio
parent74b206bce2ae81d764cb9eb1239818202435fae1 (diff)
downloadnixpkgs-2614fa1de05e0dfad6ab717c9b08c55cdd6389ab.tar
nixpkgs-2614fa1de05e0dfad6ab717c9b08c55cdd6389ab.tar.gz
nixpkgs-2614fa1de05e0dfad6ab717c9b08c55cdd6389ab.tar.bz2
nixpkgs-2614fa1de05e0dfad6ab717c9b08c55cdd6389ab.tar.lz
nixpkgs-2614fa1de05e0dfad6ab717c9b08c55cdd6389ab.tar.xz
nixpkgs-2614fa1de05e0dfad6ab717c9b08c55cdd6389ab.tar.zst
nixpkgs-2614fa1de05e0dfad6ab717c9b08c55cdd6389ab.zip
portaudio: fixup patches
- don't use preBuild for patching
- leave all of the tests in place (no tests are run anyway)
Diffstat (limited to 'pkgs/development/libraries/portaudio')
-rw-r--r--pkgs/development/libraries/portaudio/default.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/development/libraries/portaudio/default.nix b/pkgs/development/libraries/portaudio/default.nix
index b2375fb7583..3882e1fb08a 100644
--- a/pkgs/development/libraries/portaudio/default.nix
+++ b/pkgs/development/libraries/portaudio/default.nix
@@ -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