openai-whisper-cpp: install all binaries built by default
``` whisper-cpp whisper-cpp-bench whisper-cpp-command whisper-cpp-lsp whisper-cpp-quantize whisper-cpp-server whisper-cpp-stream whisper-cpp-talk-llama ```
This commit is contained in:
@@ -78,15 +78,18 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
GGML_CUDA = "1";
|
||||
};
|
||||
|
||||
makeFlags = [ "main" "stream" "command" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
|
||||
cp ./main $out/bin/whisper-cpp
|
||||
cp ./stream $out/bin/whisper-cpp-stream
|
||||
cp ./command $out/bin/whisper-cpp-command
|
||||
|
||||
for file in *; do
|
||||
if [[ -x "$file" && -f "$file" && "$file" != "main" ]]; then
|
||||
cp "$file" "$out/bin/whisper-cpp-$file"
|
||||
fi
|
||||
done
|
||||
|
||||
cp models/download-ggml-model.sh $out/bin/whisper-cpp-download-ggml-model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user