Merge pull request #276055 from KaiHa/pr-openai-whisper-cpp-install-command

openai-whisper-cpp: install "command"
This commit is contained in:
Mario Rodas 2023-12-24 18:04:55 -05:00 committed by GitHub
commit 39c7bef832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
WHISPER_COREML_ALLOW_FALLBACK = "1";
};
makeFlags = [ "main" "stream" ];
makeFlags = [ "main" "stream" "command" ];
installPhase = ''
runHook preInstall
@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp ./main $out/bin/whisper-cpp
cp ./stream $out/bin/whisper-cpp-stream
cp ./command $out/bin/whisper-cpp-command
cp models/download-ggml-model.sh $out/bin/whisper-cpp-download-ggml-model