git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #121809 from rvolosatovs/init/stt

Deprecate deepspeech in favor of stt

commit3ff0ef56664e7edbc6861fd0a7f52236ea7ada8a authordavidak <davidak@users.noreply.github.com> dateFri 21 May 2021, 23:19 (5 years ago) parentb184f0b2abcc9b
4 files changed+37−36
pkgs/misc/deepspeech/default.nix−34 pkgs/tools/audio/stt/default.nix+34 pkgs/top-level/aliases.nix+1 pkgs/top-level/all-packages.nix+2−2
pkgs/misc/deepspeech/default.nixdeleted−34
@@ -1,34 +0,0 @@
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−}
pkgs/tools/audio/stt/default.nixnew file+34
@@ -0,0 +1,34 @@
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+}
pkgs/top-level/aliases.nix+1
@@ -167,6 +167,7 @@ mapAliases ({
167167 deadpixi-sam = deadpixi-sam-unstable;
168168 debian_devscripts = debian-devscripts; # added 2016-03-23
169169 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
170171 desktop_file_utils = desktop-file-utils; # added 2018-02-25
171172 devicemapper = lvm2; # added 2018-04-25
172173 digikam5 = digikam; # added 2017-02-18
pkgs/top-level/all-packages.nix+2−2
@@ -28579,6 +28579,8 @@ in
2857928579
2858028580 streamlit = python3Packages.callPackage ../applications/science/machine-learning/streamlit { };
2858128581
28582+ stt = callPackage ../tools/audio/stt { };
28583+
2858228584 stuntrally = callPackage ../games/stuntrally {
2858328585 ogre = ogre1_9;
2858428586 mygui = mygui.override {
@@ -30036,8 +30038,6 @@ in
3003630038
3003730039 dbus-map = callPackage ../tools/misc/dbus-map { };
3003830040
30039− deepspeech = callPackage ../misc/deepspeech { };
30040−
3004130041 dell-530cdn = callPackage ../misc/drivers/dell-530cdn {};
3004230042
3004330043 demjson = with python3Packages; toPythonApplication demjson;