mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
79 lines
1.6 KiB
Nix
79 lines
1.6 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.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mothsart";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0z11yxvgi8m2xjmmf56zla91jpmf0a4imwi9qqz6bp51pw4sk8gp";
|
|
};
|
|
|
|
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 = "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;
|
|
};
|
|
}
|
|
|