From 052ce831da91ae340779a45e26d73b11bd31a0bb Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 19 Oct 2024 00:55:00 +0300 Subject: [PATCH 1/2] openai-whisper-cpp: 1.7.0 -> 1.7.1 Diff: https://www.github.com/ggerganov/whisper.cpp/compare/refs/tags/v1.7.0...v1.7.1 --- pkgs/tools/audio/openai-whisper-cpp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/audio/openai-whisper-cpp/default.nix b/pkgs/tools/audio/openai-whisper-cpp/default.nix index eff1c3321496..2cdb208dd8f4 100644 --- a/pkgs/tools/audio/openai-whisper-cpp/default.nix +++ b/pkgs/tools/audio/openai-whisper-cpp/default.nix @@ -25,13 +25,13 @@ let in effectiveStdenv.mkDerivation (finalAttrs: { pname = "whisper-cpp"; - version = "1.7.0"; + version = "1.7.1"; src = fetchFromGitHub { owner = "ggerganov"; repo = "whisper.cpp"; rev = "refs/tags/v${finalAttrs.version}" ; - hash = "sha256-obAXqqQEs7lkv6v1vl3aN+Vh6wPSYSXXbI6mlee6/QM="; + hash = "sha256-EDFUVjud79ZRCzGbOh9L9NcXfN3ikvsqkVSOME9F9oo="; }; # The upstream download script tries to download the models to the From b88b179d26913818afeb537a8707ac2bc95e71de Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 19 Oct 2024 01:26:09 +0300 Subject: [PATCH 2/2] 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 ``` --- pkgs/tools/audio/openai-whisper-cpp/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/audio/openai-whisper-cpp/default.nix b/pkgs/tools/audio/openai-whisper-cpp/default.nix index 2cdb208dd8f4..a041635746b4 100644 --- a/pkgs/tools/audio/openai-whisper-cpp/default.nix +++ b/pkgs/tools/audio/openai-whisper-cpp/default.nix @@ -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