3
0
Fork 0
forked from mirrors/nixpkgs

pyaudio: fix build on darwin

* build with '--static-link' flag
* set 'PORTAUDIO_PATH' environment variable
This commit is contained in:
Jason \"Don\" O'Conal 2013-07-06 18:00:45 +10:00 committed by Rok Garbas
parent cd5f3dc1fa
commit 5e45773df1

View file

@ -3481,10 +3481,14 @@ pythonPackages = python.modules // rec {
buildInputs = [ python pkgs.portaudio ]; buildInputs = [ python pkgs.portaudio ];
installPhase = '' buildPhase = if stdenv.isDarwin then ''
python setup.py install --prefix=$out PORTAUDIO_PATH="${pkgs.portaudio}" python setup.py build --static-link
'' else ''
python setup.py build
''; '';
installPhase = "python setup.py install --prefix=$out";
meta = { meta = {
description = "Python bindings for PortAudio"; description = "Python bindings for PortAudio";
homepage = "http://people.csail.mit.edu/hubert/pyaudio/"; homepage = "http://people.csail.mit.edu/hubert/pyaudio/";