python310Packages.soundfile: fix build on x86_64-darwin

This commit is contained in:
Weijia Wang
2023-02-08 07:08:47 +01:00
committed by Florian Brandes
parent 788e73dfdc
commit 8a557db9ed

View File

@@ -29,6 +29,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ numpy libsndfile cffi ];
propagatedNativeBuildInputs = [ cffi ];
preConfigure = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
export PYSOUNDFILE_ARCHITECTURE=x86_64
'';
meta = {
description = "An audio library based on libsndfile, CFFI and NumPy";
license = lib.licenses.bsd3;