2021-01-19 06:50:56 +00:00
|
|
|
|
{ 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 }:
|
2019-03-13 17:03:26 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-15 09:14:19 +00:00
|
|
|
|
pname = "parlatype";
|
2020-06-30 11:06:51 +00:00
|
|
|
|
version = "2.1";
|
2019-03-13 17:03:26 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "gkarsay";
|
2019-03-15 09:15:34 +00:00
|
|
|
|
repo = pname;
|
2019-03-15 09:16:20 +00:00
|
|
|
|
rev = "v${version}";
|
2020-06-30 11:06:51 +00:00
|
|
|
|
sha256 = "1k53q0kbwpnbgyr0lmfzf5sm4f93d8nbjrzdz9pdhzpxgihndg25";
|
2019-03-13 17:03:26 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
|
pkg-config
|
2019-03-13 17:03:26 +00:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
gettext
|
|
|
|
|
appstream-glib
|
|
|
|
|
python3
|
|
|
|
|
gobject-introspection
|
|
|
|
|
itstool
|
|
|
|
|
wrapGAppsHook
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-03-23 04:50:12 +00:00
|
|
|
|
gtk3
|
2019-03-13 17:03:26 +00:00
|
|
|
|
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
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
mesonFlags = [ "-Dlibreoffice=false" ];
|
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2019-03-13 17:03:26 +00:00
|
|
|
|
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.
|
|
|
|
|
'';
|
2020-03-21 02:43:20 +00:00
|
|
|
|
homepage = "https://gkarsay.github.io/parlatype/";
|
2019-03-13 17:03:26 +00:00
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
|
maintainers = [ maintainers.melchips ];
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|