Merge pull request #170124 from armeenm/remove-pocketsphinx
pocketsphinx/sphinxbase/parlatype: removemain
commit
4f61af421a
@ -1,66 +0,0 @@ |
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, meson, gtk3, at-spi2-core, dbus, gst_all_1, sphinxbase, pocketsphinx, ninja, gettext, appstream-glib, python3, glib, gobject-introspection, gsettings-desktop-schemas, itstool, wrapGAppsHook, hicolor-icon-theme }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "parlatype"; |
||||
version = "2.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "gkarsay"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "1k53q0kbwpnbgyr0lmfzf5sm4f93d8nbjrzdz9pdhzpxgihndg25"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
pkg-config |
||||
meson |
||||
ninja |
||||
gettext |
||||
appstream-glib |
||||
python3 |
||||
gobject-introspection |
||||
itstool |
||||
wrapGAppsHook |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
gtk3 |
||||
at-spi2-core |
||||
dbus |
||||
gst_all_1.gstreamer |
||||
gst_all_1.gst-plugins-base |
||||
gst_all_1.gst-plugins-good |
||||
gst_all_1.gst-plugins-bad |
||||
gst_all_1.gst-plugins-ugly |
||||
gst_all_1.gst-libav |
||||
sphinxbase |
||||
pocketsphinx |
||||
glib |
||||
gsettings-desktop-schemas |
||||
hicolor-icon-theme |
||||
]; |
||||
|
||||
postPatch = '' |
||||
chmod +x data/meson_post_install.py |
||||
patchShebangs data/meson_post_install.py |
||||
''; |
||||
|
||||
doCheck = false; |
||||
|
||||
buildPhase = '' |
||||
export GST_PLUGIN_SYSTEM_PATH_1_0="$out/lib/gstreamer-1.0/:$GST_PLUGIN_SYSTEM_PATH_1_0" |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "GNOME audio player for transcription"; |
||||
longDescription = '' |
||||
Parlatype is a minimal audio player for manual speech transcription, written for the GNOME desktop environment. |
||||
It plays audio sources to transcribe them in your favourite text application. |
||||
It’s intended to be useful for journalists, students, scientists and whoever needs to transcribe audio files. |
||||
''; |
||||
homepage = "https://gkarsay.github.io/parlatype/"; |
||||
license = licenses.gpl3Plus; |
||||
maintainers = [ maintainers.melchips ]; |
||||
platforms = platforms.linux; |
||||
}; |
||||
} |
@ -1,48 +0,0 @@ |
||||
{ lib, stdenv |
||||
, fetchurl |
||||
, sphinxbase |
||||
, pkg-config |
||||
, python27 # >= 2.6 |
||||
, swig2 # 2.0 |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "pocketsphinx"; |
||||
version = "5prealpha"; |
||||
|
||||
src = fetchurl { |
||||
url = "mirror://sourceforge/cmusphinx/pocketsphinx-${version}.tar.gz"; |
||||
sha256 = "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ sphinxbase ]; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
buildInputs = [ python27 swig2 ]; |
||||
|
||||
meta = { |
||||
description = "Voice recognition library written in C"; |
||||
homepage = "http://cmusphinx.sourceforge.net"; |
||||
license = lib.licenses.free; |
||||
platforms = lib.platforms.linux; |
||||
}; |
||||
} |
||||
|
||||
/* Example usage: |
||||
|
||||
|
||||
1. |
||||
|
||||
$ cat << EOF > vocabulary.txt |
||||
oh mighty computer /1e-40/ |
||||
hello world /1e-30/ |
||||
EOF |
||||
|
||||
2. |
||||
|
||||
$ pocketsphinx_continuous -inmic yes -kws vocabulary.txt 2> /dev/null |
||||
# after you say "hello world": |
||||
hello world |
||||
... |
||||
|
||||
*/ |
@ -1,40 +0,0 @@ |
||||
{ lib, stdenv |
||||
, fetchurl |
||||
, bison |
||||
, pkg-config |
||||
, python27 # >= 2.6 |
||||
, swig2 # 2.0 |
||||
, multipleOutputs ? false #Uses incomplete features of nix! |
||||
}: |
||||
|
||||
stdenv.mkDerivation (rec { |
||||
pname = "sphinxbase"; |
||||
version = "5prealpha"; |
||||
|
||||
src = fetchurl { |
||||
url = "mirror://sourceforge/cmusphinx/sphinxbase-${version}.tar.gz"; |
||||
sha256 = "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
buildInputs = [ swig2 python27 bison ]; |
||||
|
||||
meta = { |
||||
description = "Support Library for Pocketsphinx"; |
||||
homepage = "http://cmusphinx.sourceforge.net"; |
||||
license = lib.licenses.bsd2; |
||||
platforms = lib.platforms.unix; |
||||
maintainers = with lib.maintainers; [ ]; |
||||
}; |
||||
|
||||
} // (lib.optionalAttrs multipleOutputs { |
||||
outputs = [ "out" "lib" "headers" ]; |
||||
|
||||
postInstall = '' |
||||
mkdir -p $lib |
||||
cp -av $out/lib* $lib |
||||
|
||||
mkdir -p $headers |
||||
cp -av $out/include $headers |
||||
''; |
||||
})) |
Loading…
Reference in new issue