forked from mirrors/nixpkgs
pyaudio: fix build on darwin
* build with '--static-link' flag * set 'PORTAUDIO_PATH' environment variable
This commit is contained in:
parent
cd5f3dc1fa
commit
5e45773df1
|
@ -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/";
|
||||||
|
|
Loading…
Reference in a new issue