3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.miniaudio: fix build on Darwin

This commit is contained in:
Robert Schütz 2022-05-28 22:08:29 +00:00 committed by Robert Schütz
parent 413383e9ad
commit 57436c50ee
2 changed files with 11 additions and 1 deletions

View file

@ -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 ];

View file

@ -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 { };