forked from lusum/gSpeech
-
Notifications
You must be signed in to change notification settings - Fork 3
/
gspeech.nix
66 lines (58 loc) · 1.27 KB
/
gspeech.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ lib
, python3
, gtk3
, wrapGAppsHook
, glibcLocales
, gobject-introspection
, gettext
, pango
, gdk-pixbuf
, librsvg
, atk
, libnotify
, libappindicator-gtk3
, gst_all_1
, makeWrapper
, picotts
, sox
}:
python3.pkgs.buildPythonApplication rec {
pname = "gSpeech";
version = "0.12.0";
src = lib.cleanSource ./.;
nativeBuildInputs = [
wrapGAppsHook
gobject-introspection
pango
gdk-pixbuf
atk
gettext
libnotify
libappindicator-gtk3
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
makeWrapper
];
buildInputs = [
glibcLocales
gtk3
python3
];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
librsvg
];
postFixup = ''
wrapProgram $out/bin/gspeech --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
wrapProgram $out/bin/gspeech-cli --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
'';
strictDeps = false;
meta = with lib; {
description = "A minimal GUI for the Text To Speech 'Svox Pico'. Read clipboard or selected text in different languages and manage it : pause, stop, replay.";
homepage = "https://github.com/mothsART/gSpeech";
maintainers = with maintainers; [ mothsart ];
license = licenses.gpl3;
platforms = platforms.unix;
};
}