From dd781ebb55367f63cafd3457ea5033530b5ea44f Mon Sep 17 00:00:00 2001 From: Nicky Mouha Date: Tue, 16 Jun 2026 22:28:43 -0400 Subject: [PATCH] whisper-cpp: 1.8.5 -> 1.8.7 --- pkgs/by-name/wh/whisper-cpp/package.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/wh/whisper-cpp/package.nix b/pkgs/by-name/wh/whisper-cpp/package.nix index 9684826bb140..cbe9c366bd63 100644 --- a/pkgs/by-name/wh/whisper-cpp/package.nix +++ b/pkgs/by-name/wh/whisper-cpp/package.nix @@ -31,7 +31,7 @@ withSDL ? true, - withFFmpegSupport ? false, + withFFmpegSupport ? stdenv.hostPlatform.isLinux, }: assert metalSupport -> stdenv.hostPlatform.isDarwin; @@ -81,13 +81,13 @@ let in effectiveStdenv.mkDerivation (finalAttrs: { pname = "whisper-cpp"; - version = "1.8.5"; + version = "1.8.7"; src = fetchFromGitHub { owner = "ggml-org"; repo = "whisper.cpp"; tag = "v${finalAttrs.version}"; - hash = "sha256-wZYSk0IVCL8bt00HVo6iqXS31GZJ2C8Z2be6wiMs7l8="; + hash = "sha256-hzgO2IqV1+JQjiYBBmFSOLfp1BgH0DgU0TZyO7OzFHE="; }; # The upstream download script tries to download the models to the @@ -135,7 +135,7 @@ effectiveStdenv.mkDerivation (finalAttrs: { (cmakeBool "BUILD_SHARED_LIBS" (!isStatic)) ] ++ optionals isLinux [ - (cmakeBool "WHISPER_FFMPEG" withFFmpegSupport) + (cmakeBool "WHISPER_COMMON_FFMPEG" withFFmpegSupport) ] ++ optionals (isx86 && !isStatic) [ (cmakeBool "GGML_BACKEND_DL" true) @@ -188,6 +188,11 @@ effectiveStdenv.mkDerivation (finalAttrs: { runHook postInstallCheck ''; + postFixup = '' + substituteInPlace $out/lib/pkgconfig/whisper.pc \ + --replace-fail '//' '/' + ''; + passthru.updateScript = nix-update-script { }; meta = {