Merge pull request #207867 from aforemny/feature/stt-093-140
stt: 0.9.3 -> 1.4.0
This commit is contained in:
commit
9e259e25bd
|
@ -1,12 +1,12 @@
|
||||||
{ stdenv, lib, fetchurl, autoPatchelfHook }:
|
{ stdenv, lib, fetchurl, autoPatchelfHook, bzip2, lzma }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "stt";
|
pname = "stt";
|
||||||
version = "0.9.3";
|
version = "1.4.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tf.Linux.tar.xz";
|
url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tflite.Linux.tar.xz";
|
||||||
sha256 = "0axwys8vis4f0m7d1i2r3dfqlc8p3yj2nisvc7pdi5qs741xgy8w";
|
hash = "sha256-RVYc64pLYumQoVUEFZdxfUUaBMozaqgD0h/yiMaWN90=";
|
||||||
};
|
};
|
||||||
setSourceRoot = "sourceRoot=`pwd`";
|
setSourceRoot = "sourceRoot=`pwd`";
|
||||||
|
|
||||||
|
@ -15,12 +15,16 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
bzip2
|
||||||
|
lzma
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D stt $out/bin/stt
|
install -D stt $out/bin/stt
|
||||||
install -D coqui-stt.h $out/include/coqui-stt.h
|
install -D coqui-stt.h $out/include/coqui-stt.h
|
||||||
|
install -D libkenlm.so $out/lib/libkenlm.so
|
||||||
|
install -D libsox.so.3 $out/lib/libsox.so.3
|
||||||
install -D libstt.so $out/lib/libstt.so
|
install -D libstt.so $out/lib/libstt.so
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue