forked from mirrors/nixpkgs
python310Packages.miniaudio: fix build on Darwin
This commit is contained in:
parent
413383e9ad
commit
57436c50ee
|
@ -1,9 +1,12 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, cffi
|
||||
, pytestCheckHook
|
||||
, AudioToolbox
|
||||
, CoreAudio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -19,6 +22,11 @@ buildPythonPackage rec {
|
|||
sha256 = "16llwmbbd9445rwhl4v66kf5zd7yl3a94zm9xyllq6ij7vnhg5jb";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
AudioToolbox
|
||||
CoreAudio
|
||||
];
|
||||
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
propagatedBuildInputs = [ cffi ];
|
||||
|
||||
|
|
|
@ -5326,7 +5326,9 @@ in {
|
|||
|
||||
minexr = callPackage ../development/python-modules/minexr { };
|
||||
|
||||
miniaudio = callPackage ../development/python-modules/miniaudio { };
|
||||
miniaudio = callPackage ../development/python-modules/miniaudio {
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) AudioToolbox CoreAudio;
|
||||
};
|
||||
|
||||
minidb = callPackage ../development/python-modules/minidb { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue