diff options
Diffstat (limited to 'pkgs/tools/audio/openai-whisper-cpp/default.nix')
-rw-r--r-- | pkgs/tools/audio/openai-whisper-cpp/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/audio/openai-whisper-cpp/default.nix b/pkgs/tools/audio/openai-whisper-cpp/default.nix index 5ebfcbec8286..f6d83690824f 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,7 +29,12 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ SDL2 ] ++ lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ]; + buildInputs = [ SDL2 ] ++ lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreML CoreVideo ]; + + env = lib.optionalAttrs stdenv.isDarwin { + WHISPER_COREML = "1"; + WHISPER_COREML_ALLOW_FALLBACK = "1"; + }; makeFlags = [ "main" "stream" ]; |