mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
parent
1eb875e811
commit
c5f3de74ca
1 changed files with 8 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
|||
{ stdenv, lib, fetchurl, autoPatchelfHook }:
|
||||
{ stdenv, lib, fetchurl, autoPatchelfHook, bzip2, lzma }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "stt";
|
||||
version = "0.9.3";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tf.Linux.tar.xz";
|
||||
sha256 = "0axwys8vis4f0m7d1i2r3dfqlc8p3yj2nisvc7pdi5qs741xgy8w";
|
||||
url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tflite.Linux.tar.xz";
|
||||
hash = "sha256-RVYc64pLYumQoVUEFZdxfUUaBMozaqgD0h/yiMaWN90=";
|
||||
};
|
||||
setSourceRoot = "sourceRoot=`pwd`";
|
||||
|
||||
|
@ -15,12 +15,16 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
buildInputs = [
|
||||
bzip2
|
||||
lzma
|
||||
stdenv.cc.cc.lib
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -D stt $out/bin/stt
|
||||
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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue