diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-04-09 15:45:50 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-04-09 16:00:24 +0200 |
commit | f0c0769189d11debf7b237a02695c44c9773d52a (patch) | |
tree | 3cc41443fa74b614d3440b5f0da0659aa2483073 | |
parent | 32e9a1298b59cc4492d682bc963222db2f4e296e (diff) | |
download | guix-f0c0769189d11debf7b237a02695c44c9773d52a.tar.gz guix-f0c0769189d11debf7b237a02695c44c9773d52a.zip |
gnu: Update whisper-cpp to 1.7.5.
* gnu/packages/machine-learning.scm (whisper-cpp): Update to 1.7.5.
[source]: Remove `whisper-cpp-enable-tests.patch` patch.
[inputs]: Add `git`.
* gnu/packages/patches/whisper-cpp-enable-tests.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove
`whisper-cpp-enable-tests.patch`.
Change-Id: I16050a9cfe40374dc5bf8ba7ed66e1eb02a44ee5
-rw-r--r-- | gnu/local.mk | 1 | ||||
-rw-r--r-- | gnu/packages/machine-learning.scm | 10 | ||||
-rw-r--r-- | gnu/packages/patches/whisper-cpp-enable-tests.patch | 19 |
3 files changed, 5 insertions, 25 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 6dc4b4f61b..29bf4c72b8 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2412,7 +2412,6 @@ dist_patch_DATA = \ %D%/packages/patches/webrtc-audio-processing-x86-no-sse.patch \ %D%/packages/patches/webrtc-for-telegram-desktop-unbundle-libsrtp.patch \ %D%/packages/patches/websocketpp-fix-for-cmake-3.15.patch \ - %D%/packages/patches/whisper-cpp-enable-tests.patch \ %D%/packages/patches/wmctrl-64-fix.patch \ %D%/packages/patches/wmfire-dont-inline-draw-fire.patch \ %D%/packages/patches/wmfire-update-for-new-gdk-versions.patch \ diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 3e68af3476..7a8f866d67 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -136,6 +136,7 @@ #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) + #:use-module (gnu packages version-control) #:use-module (gnu packages vulkan) #:use-module (gnu packages video) #:use-module (gnu packages web) @@ -738,17 +739,16 @@ independently to be able to run a LLaMA model.") (define-public whisper-cpp (package (name "whisper-cpp") - (version "1.7.3") + (version "1.7.5") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/ggerganov/whisper.cpp") + (url "https://github.com/ggml-org/whisper.cpp") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "0rrkgrx8akw91b77kl36i03i39a79r0p69glhhidm28qfw02icjx")) - (patches (search-patches "whisper-cpp-enable-tests.patch")))) + "0fs15rizz4psd3flfjpdivzvc9w19i3706flisn136ax0k8r7w5n")))) (build-system cmake-build-system) (arguments (list @@ -788,7 +788,7 @@ independently to be able to run a LLaMA model.") (native-inputs (list pkg-config)) (inputs - (list openblas sdl2)) + (list openblas sdl2 git)) (synopsis "OpenAI's Whisper model in C/C++") (description "This package is a high-performance inference of OpenAI's diff --git a/gnu/packages/patches/whisper-cpp-enable-tests.patch b/gnu/packages/patches/whisper-cpp-enable-tests.patch deleted file mode 100644 index c4340d4879..0000000000 --- a/gnu/packages/patches/whisper-cpp-enable-tests.patch +++ /dev/null @@ -1,19 +0,0 @@ -Distribution specific patch - -restored tests commented out in CMakeLists.txt upstream - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index c53252b..ee06015 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -176,8 +176,8 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/whisper.pc" - # - - if (WHISPER_BUILD_TESTS AND NOT CMAKE_JS_VERSION) -- #include(CTest) -- #add_subdirectory(tests) -+ include(CTest) -+ add_subdirectory(tests) - endif () - - if (WHISPER_BUILD_EXAMPLES) |