diff --git a/pkgs/development/python-modules/miniaudio/default.nix b/pkgs/development/python-modules/miniaudio/default.nix index f0e5db4f0ecd..e18396accfcc 100644 --- a/pkgs/development/python-modules/miniaudio/default.nix +++ b/pkgs/development/python-modules/miniaudio/default.nix @@ -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 ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f0ee37cbd6ab..e654aea72561 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };