Commit b88b179d authored by Artturin's avatar Artturin
Browse files

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
```
parent 052ce831
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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