Skip to content

Commit

Permalink
python310Packages.miniaudio: fix build on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed May 29, 2022
1 parent 413383e commit 57436c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pkgs/development/python-modules/miniaudio/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, cffi
, pytestCheckHook
, AudioToolbox
, CoreAudio
}:

buildPythonPackage rec {
Expand All @@ -19,6 +22,11 @@ buildPythonPackage rec {
sha256 = "16llwmbbd9445rwhl4v66kf5zd7yl3a94zm9xyllq6ij7vnhg5jb";
};

buildInputs = lib.optionals stdenv.isDarwin [
AudioToolbox
CoreAudio
];

propagatedNativeBuildInputs = [ cffi ];
propagatedBuildInputs = [ cffi ];

Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit 57436c5

Please sign in to comment.