mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
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 ];
|
||||
|
||||
installPhase = ''
|
||||
python setup.py install --prefix=$out
|
||||
buildPhase = if stdenv.isDarwin then ''
|
||||
PORTAUDIO_PATH="${pkgs.portaudio}" python setup.py build --static-link
|
||||
'' else ''
|
||||
python setup.py build
|
||||
'';
|
||||
|
||||
installPhase = "python setup.py install --prefix=$out";
|
||||
|
||||
meta = {
|
||||
description = "Python bindings for PortAudio";
|
||||
homepage = "http://people.csail.mit.edu/hubert/pyaudio/";
|
||||
|
Loading…
Reference in New Issue
Block a user