mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #117416 from rvolosatovs/init/deepspeech
deepspeech: init at 0.9.3
This commit is contained in:
commit
75c5bce054
34
pkgs/misc/deepspeech/default.nix
Normal file
34
pkgs/misc/deepspeech/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, lib, fetchurl, autoPatchelfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "deepspeech";
|
||||
version = "0.9.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mozilla/DeepSpeech/releases/download/v${version}/native_client.amd64.cpu.linux.tar.xz";
|
||||
sha256 = "1qy2gspprcxi76jk06ljp028xl0wkk1m3mqaxyf5qbhhfbvvpfap";
|
||||
};
|
||||
setSourceRoot = "sourceRoot=`pwd`";
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
stdenv.cc.cc.lib
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -D deepspeech $out/bin/deepspeech
|
||||
install -D deepspeech.h $out/include/deepspeech.h
|
||||
install -D libdeepspeech.so $out/lib/libdeepspeech.so
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/mozilla/DeepSpeech;
|
||||
description = "Open source embedded (offline, on-device) speech-to-text engine, which can run in real time on broad range of devices";
|
||||
license = licenses.mpl20;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = with maintainers; [ rvolosatovs ];
|
||||
};
|
||||
}
|
@ -29474,6 +29474,8 @@ in
|
||||
|
||||
dbus-map = callPackage ../tools/misc/dbus-map { };
|
||||
|
||||
deepspeech = callPackage ../misc/deepspeech { };
|
||||
|
||||
dell-530cdn = callPackage ../misc/drivers/dell-530cdn {};
|
||||
|
||||
demjson = with python3Packages; toPythonApplication demjson;
|
||||
|
Loading…
Reference in New Issue
Block a user