{ lib, fetchurl, runCommand, }: let distilLargeV35 = fetchurl { url = "https://huggingface.co/distil-whisper/distil-large-v3.5-ggml/resolve/main/ggml-model.bin"; hash = "sha256-7CSYkZtJjF9rAAQa20VlASSzzZ8m9UX/+o9dEcKNzyY="; name = "distil-large-v3.5.bin"; }; nbWhisperSmallQ5 = fetchurl { url = "https://huggingface.co/NbAiLab/nb-whisper-small/resolve/main/ggml-model-q5_0.bin"; hash = "sha256-KpAlr7boJfxK5qRmceDLL0PmLx3shycN7qb+YbUoWiA="; name = "nb-whisper-small-q5_0.bin"; }; in runCommand "whisper-models" { version = "1.0.0"; meta = { description = "Whisper GGML models for whisper.cpp"; homepage = "https://huggingface.co/distil-whisper/distil-large-v3.5-ggml"; license = lib.licenses.mit; platforms = lib.platforms.all; }; } '' mkdir -p $out/models ln -s ${distilLargeV35} $out/models/distil-large-v3.5.bin ln -s ${nbWhisperSmallQ5} $out/models/nb-whisper-small-q5_0.bin ''