diff --git a/pkgs/tools/audio/openai-whisper-cpp/default.nix b/pkgs/tools/audio/openai-whisper-cpp/default.nix index 5ebfcbec8286..c41c461acf0b 100644 --- a/pkgs/tools/audio/openai-whisper-cpp/default.nix +++ b/pkgs/tools/audio/openai-whisper-cpp/default.nix @@ -6,6 +6,7 @@ , wget , Accelerate , CoreGraphics +, CoreML , CoreVideo }: @@ -28,8 +29,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ SDL2 ] ++ lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ]; + buildInputs = [ SDL2 ] ++ lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreML CoreVideo ]; + WHISPER_COREML = lib.optionalString stdenv.isDarwin "1"; + WHISPER_COREML_ALLOW_FALLBACK = lib.optionalString stdenv.isDarwin "1"; makeFlags = [ "main" "stream" ]; installPhase = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7581f2f2cda5..b2d1ef35c125 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19170,8 +19170,8 @@ with pkgs; openai-whisper = with python3.pkgs; toPythonApplication openai-whisper; - openai-whisper-cpp = callPackage ../tools/audio/openai-whisper-cpp { - inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo; + openai-whisper-cpp = darwin.apple_sdk_11_0.callPackage ../tools/audio/openai-whisper-cpp { + inherit (darwin.apple_sdk_11_0.frameworks) Accelerate CoreGraphics CoreML CoreVideo; }; opengrok = callPackage ../development/tools/misc/opengrok { };