From 2614fa1de05e0dfad6ab717c9b08c55cdd6389ab Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Thu, 5 Jan 2017 13:49:44 -0600 Subject: [PATCH] portaudio: fixup patches - don't use preBuild for patching - leave all of the tests in place (no tests are run anyway) --- pkgs/development/libraries/portaudio/default.nix | 6 +----- 1 file changed, 1 insertion(+), 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 \ #include \ #include ' \ 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