Merge pull request #121809 from rvolosatovs/init/stt

Deprecate deepspeech in favor of stt

authored by davidak and committed by GitHub 3ff0ef56 b184f0b0

+37 -36
-34
pkgs/misc/deepspeech/default.nix
··· 1 - { stdenv, lib, fetchurl, autoPatchelfHook }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "deepspeech"; 5 - version = "0.9.3"; 6 - 7 - src = fetchurl { 8 - url = "https://github.com/mozilla/DeepSpeech/releases/download/v${version}/native_client.amd64.cpu.linux.tar.xz"; 9 - sha256 = "1qy2gspprcxi76jk06ljp028xl0wkk1m3mqaxyf5qbhhfbvvpfap"; 10 - }; 11 - setSourceRoot = "sourceRoot=`pwd`"; 12 - 13 - nativeBuildInputs = [ 14 - autoPatchelfHook 15 - ]; 16 - 17 - buildInputs = [ 18 - stdenv.cc.cc.lib 19 - ]; 20 - 21 - installPhase = '' 22 - install -D deepspeech $out/bin/deepspeech 23 - install -D deepspeech.h $out/include/deepspeech.h 24 - install -D libdeepspeech.so $out/lib/libdeepspeech.so 25 - ''; 26 - 27 - meta = with lib; { 28 - homepage = https://github.com/mozilla/DeepSpeech; 29 - description = "Open source embedded (offline, on-device) speech-to-text engine, which can run in real time on broad range of devices"; 30 - license = licenses.mpl20; 31 - platforms = [ "x86_64-linux" ]; 32 - maintainers = with maintainers; [ rvolosatovs ]; 33 - }; 34 - }
···
+34
pkgs/tools/audio/stt/default.nix
···
··· 1 + { stdenv, lib, fetchurl, autoPatchelfHook }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "stt"; 5 + version = "0.9.3"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tf.Linux.tar.xz"; 9 + sha256 = "0axwys8vis4f0m7d1i2r3dfqlc8p3yj2nisvc7pdi5qs741xgy8w"; 10 + }; 11 + setSourceRoot = "sourceRoot=`pwd`"; 12 + 13 + nativeBuildInputs = [ 14 + autoPatchelfHook 15 + ]; 16 + 17 + buildInputs = [ 18 + stdenv.cc.cc.lib 19 + ]; 20 + 21 + installPhase = '' 22 + install -D stt $out/bin/stt 23 + install -D coqui-stt.h $out/include/coqui-stt.h 24 + install -D libstt.so $out/lib/libstt.so 25 + ''; 26 + 27 + meta = with lib; { 28 + homepage = https://github.com/coqui-ai/STT; 29 + description = "Deep learning toolkit for Speech-to-Text, battle-tested in research and production"; 30 + license = licenses.mpl20; 31 + platforms = [ "x86_64-linux" ]; 32 + maintainers = with maintainers; [ rvolosatovs ]; 33 + }; 34 + }
+1
pkgs/top-level/aliases.nix
··· 167 deadpixi-sam = deadpixi-sam-unstable; 168 debian_devscripts = debian-devscripts; # added 2016-03-23 169 deepin = throw "deepin was a work in progress and it has been canceled and removed https://github.com/NixOS/nixpkgs/issues/94870"; # added 2020-08-31 170 desktop_file_utils = desktop-file-utils; # added 2018-02-25 171 devicemapper = lvm2; # added 2018-04-25 172 digikam5 = digikam; # added 2017-02-18
··· 167 deadpixi-sam = deadpixi-sam-unstable; 168 debian_devscripts = debian-devscripts; # added 2016-03-23 169 deepin = throw "deepin was a work in progress and it has been canceled and removed https://github.com/NixOS/nixpkgs/issues/94870"; # added 2020-08-31 170 + deepspeech = throw "deepspeech was removed in favor of stt. https://github.com/NixOS/nixpkgs/issues/119496"; # added 2021-05-05 171 desktop_file_utils = desktop-file-utils; # added 2018-02-25 172 devicemapper = lvm2; # added 2018-04-25 173 digikam5 = digikam; # added 2017-02-18
+2 -2
pkgs/top-level/all-packages.nix
··· 28579 28580 streamlit = python3Packages.callPackage ../applications/science/machine-learning/streamlit { }; 28581 28582 stuntrally = callPackage ../games/stuntrally { 28583 ogre = ogre1_9; 28584 mygui = mygui.override { ··· 30035 }); 30036 30037 dbus-map = callPackage ../tools/misc/dbus-map { }; 30038 - 30039 - deepspeech = callPackage ../misc/deepspeech { }; 30040 30041 dell-530cdn = callPackage ../misc/drivers/dell-530cdn {}; 30042
··· 28579 28580 streamlit = python3Packages.callPackage ../applications/science/machine-learning/streamlit { }; 28581 28582 + stt = callPackage ../tools/audio/stt { }; 28583 + 28584 stuntrally = callPackage ../games/stuntrally { 28585 ogre = ogre1_9; 28586 mygui = mygui.override { ··· 30037 }); 30038 30039 dbus-map = callPackage ../tools/misc/dbus-map { }; 30040 30041 dell-530cdn = callPackage ../misc/drivers/dell-530cdn {}; 30042