Files
nixpkgs/pkgs/by-name/gs/gspeech/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

90 lines
1.7 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
gtk3,
wrapGAppsHook3,
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.13.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "mothsart";
repo = "gSpeech";
rev = version;
sha256 = "sha256-IR7acxstJXueIrtBqVBqznEG3Avke7m1qfv7058u59g=";
};
nativeBuildInputs = [
wrapGAppsHook3
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
];
postInstall = ''
install -Dm444 gspeech.desktop -t $out/share/applications
install -Dm444 icons/*.svg -t $out/share/icons/hicolor/scalable/apps
'';
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 = "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;
};
}