20 lines
521 B
Nix
20 lines
521 B
Nix
{ lib, pkgs, stdenv, fetchurl, unzip }:
|
|
stdenv.mkDerivation rec {
|
|
name = "vosk-api";
|
|
version = "0.3.45";
|
|
src = fetchurl {
|
|
url =
|
|
"https://github.com/alphacep/vosk-api/releases/download/v${version}/vosk-linux-x86_64-${version}.zip";
|
|
sha256 = "sha256-u9yO2FxDl59kQxQoiXcOqVy/vFbP+1xdzXOvqHXF+7I=";
|
|
};
|
|
nativeBuildInputs = [ unzip ];
|
|
unpackCmd = "unzip $curSrc";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib
|
|
mv libvosk.so $out/lib/
|
|
mkdir -p $out/include
|
|
mv vosk_api.h $out/include/
|
|
'';
|
|
}
|