openai-whisper-cpp: 1.2.1 -> 1.4.0

+5 -5
+2 -2
pkgs/tools/audio/openai-whisper-cpp/default.nix
··· 11 12 stdenv.mkDerivation rec { 13 pname = "whisper-cpp"; 14 - version = "1.2.1"; 15 16 src = fetchFromGitHub { 17 owner = "ggerganov"; 18 repo = "whisper.cpp"; 19 rev = "refs/tags/v${version}" ; 20 - hash = "sha256-gcw+tcrwCt2CynNXQZxb+WxN/0chIQIJnwUAw9JGkYA="; 21 }; 22 23 # The upstream download script tries to download the models to the
··· 11 12 stdenv.mkDerivation rec { 13 pname = "whisper-cpp"; 14 + version = "1.4.0"; 15 16 src = fetchFromGitHub { 17 owner = "ggerganov"; 18 repo = "whisper.cpp"; 19 rev = "refs/tags/v${version}" ; 20 + hash = "sha256-176MpooVQrq1dXC62h8Yyyhw6IjCA50tp1J4DQPSePQ="; 21 }; 22 23 # The upstream download script tries to download the models to the
+3 -3
pkgs/tools/audio/openai-whisper-cpp/download-models.patch
··· 1 diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh 2 - index 7075080..5e9c905 100755 3 --- a/models/download-ggml-model.sh 4 +++ b/models/download-ggml-model.sh 5 @@ -9,18 +9,6 @@ 6 - src="https://huggingface.co/datasets/ggerganov/whisper.cpp" 7 pfx="resolve/main/ggml" 8 9 -# get the path of this script 10 -function get_script_path() { 11 - if [ -x "$(command -v realpath)" ]; then 12 - - echo "$(dirname $(realpath $0))" 13 - else 14 - local ret="$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)" 15 - echo "$ret"
··· 1 diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh 2 + index 749b409..831f4c0 100755 3 --- a/models/download-ggml-model.sh 4 +++ b/models/download-ggml-model.sh 5 @@ -9,18 +9,6 @@ 6 + src="https://huggingface.co/ggerganov/whisper.cpp" 7 pfx="resolve/main/ggml" 8 9 -# get the path of this script 10 -function get_script_path() { 11 - if [ -x "$(command -v realpath)" ]; then 12 + - echo "$(dirname "$(realpath "$0")")" 13 - else 14 - local ret="$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)" 15 - echo "$ret"