@@ -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−}