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:
Artturin
2024-10-19 01:26:09 +03:00
parent 052ce831da
commit b88b179d26
@@ -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