Merge pull request #170124 from armeenm/remove-pocketsphinx

pocketsphinx/sphinxbase/parlatype: remove
main
Rick van Schijndel 2 years ago committed by GitHub
commit 4f61af421a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 66
      pkgs/applications/audio/parlatype/default.nix
  2. 48
      pkgs/development/libraries/pocketsphinx/default.nix
  3. 40
      pkgs/development/libraries/sphinxbase/default.nix
  4. 3
      pkgs/top-level/aliases.nix
  5. 6
      pkgs/top-level/all-packages.nix

@ -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.
Its 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
'';
}))

@ -912,6 +912,7 @@ mapAliases ({
paperless-ng = paperless-ngx; # Added 2022-04-11
parity = openethereum; # Added 2020-08-01
parity-ui = throw "parity-ui was removed because it was broken and unmaintained by upstream"; # Added 2022-01-10
parlatype = throw "parlatype has been removed: unmaintained"; # Added 2022-04-24
parquet-cpp = throw "'parquet-cpp' has been renamed to/replaced by 'arrow-cpp'"; # Converted to throw 2022-02-22
patchmatrix = throw "'patchmatrix' has been renamed to/replaced by 'open-music-kontrollers.patchmatrix'"; # Added 2022-03-09
pass-otp = throw "'pass-otp' has been renamed to/replaced by 'pass.withExtensions'"; # Converted to throw 2022-02-22
@ -998,6 +999,7 @@ mapAliases ({
plexpy = throw "'plexpy' has been renamed to/replaced by 'tautulli'"; # Converted to throw 2022-02-22
pltScheme = racket; # just to be sure
pmtools = throw "'pmtools' has been renamed to/replaced by 'acpica-tools'"; # Converted to throw 2022-02-22
pocketsphinx = throw "pocketsphinx has been removed: unmaintained"; # Added 2022-04-24
polarssl = throw "'polarssl' has been renamed to/replaced by 'mbedtls'"; # Converted to throw 2022-02-22
polysh = throw "polysh has been removed from nixpkgs as the upstream has abandoned the project"; # Added 2022-01-01
poppler_qt5 = throw "'poppler_qt5' has been renamed to/replaced by 'libsForQt5.poppler'"; # Converted to throw 2022-02-22
@ -1199,6 +1201,7 @@ mapAliases ({
spectral = neochat; # Added 2020-12-27
speech_tools = throw "'speech_tools' has been renamed to/replaced by 'speech-tools'"; # Converted to throw 2022-02-22
speedtest_cli = throw "'speedtest_cli' has been renamed to/replaced by 'speedtest-cli'"; # Converted to throw 2022-02-22
sphinxbase = throw "sphinxbase has been removed: unmaintained"; # Added 2022-04-24
spice_gtk = throw "'spice_gtk' has been renamed to/replaced by 'spice-gtk'"; # Converted to throw 2022-02-22
spice_protocol = throw "'spice_protocol' has been renamed to/replaced by 'spice-protocol'"; # Converted to throw 2022-02-22
spidermonkey_1_8_5 = throw "spidermonkey_1_8_5 has been removed, because it is based on Firefox 4.0 from 2011"; # added 2021-05-03

@ -19943,8 +19943,6 @@ with pkgs;
plib = callPackage ../development/libraries/plib { };
pocketsphinx = callPackage ../development/libraries/pocketsphinx { };
poco = callPackage ../development/libraries/poco { };
podofo = callPackage ../development/libraries/podofo { };
@ -20572,8 +20570,6 @@ with pkgs;
sphinx-serve = with python3Packages; toPythonApplication sphinx-serve;
sphinxbase = callPackage ../development/libraries/sphinxbase { };
sphinxsearch = callPackage ../servers/search/sphinxsearch { };
spice = callPackage ../development/libraries/spice { };
@ -28656,8 +28652,6 @@ with pkgs;
paraview = libsForQt5.callPackage ../applications/graphics/paraview { };
parlatype = callPackage ../applications/audio/parlatype { };
packet = callPackage ../development/tools/packet { };
packet-sd = callPackage ../development/tools/packet-sd { };

Loading…
Cancel
Save