Merge pull request #117416 from rvolosatovs/init/deepspeech

deepspeech: init at 0.9.3

authored by

Sandro and committed by
GitHub
75c5bce0 549c7db6

+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 + }
+2
pkgs/top-level/all-packages.nix
··· 29474 29475 dbus-map = callPackage ../tools/misc/dbus-map { }; 29476 29477 dell-530cdn = callPackage ../misc/drivers/dell-530cdn {}; 29478 29479 demjson = with python3Packages; toPythonApplication demjson;
··· 29474 29475 dbus-map = callPackage ../tools/misc/dbus-map { }; 29476 29477 + deepspeech = callPackage ../misc/deepspeech { }; 29478 + 29479 dell-530cdn = callPackage ../misc/drivers/dell-530cdn {}; 29480 29481 demjson = with python3Packages; toPythonApplication demjson;