summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2026-04-30 09:26:01 +0200
committerNoé Lopez <noelopez@free.fr>2026-05-03 19:46:06 +0200
commit589f02e0c5c5fec5998607b2dcf06ddc1de7a782 (patch)
tree83be0a4ef34ae76eb1054b81e04ed0fb846f2d35 /gnu
parentea758099cb3e73400f544ceec3be24020ae8fc07 (diff)
gnu: speech-dispatcher: Wrap spd-conf.
* gnu/packages/speech.scm (gnu): Import (gnu packages freedesktop). (speech-dispatcher)[arguments]: Add #:imported-modules and #:modules. [#:phases]: Add 'wrap-spd-conf. [inputs]: Remove python-xdg-base-dirs. Add python-pyxdg. Upstream always mentioned PyXDG since version 0.8, and never xdg-base-dirs. Change-Id: I3eb8e27e9ed5fa9e98d1d6fe3555658a42b50917 Signed-off-by: Noé Lopez <noelopez@free.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/speech.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm
index 046a15c14f6..bddc752749c 100644
--- a/gnu/packages/speech.scm
+++ b/gnu/packages/speech.scm
@@ -48,6 +48,7 @@
48 #:use-module (gnu packages compression) 48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages documentation) 49 #:use-module (gnu packages documentation)
50 #:use-module (gnu packages emacs) 50 #:use-module (gnu packages emacs)
51 #:use-module (gnu packages freedesktop)
51 #:use-module (gnu packages gcc) 52 #:use-module (gnu packages gcc)
52 #:use-module (gnu packages gettext) 53 #:use-module (gnu packages gettext)
53 #:use-module (gnu packages glib) 54 #:use-module (gnu packages glib)
@@ -272,13 +273,24 @@ efficiency through the use of a compact vector representation of n-grams.")
272 ;; Disable support for proprietary TTS engines. 273 ;; Disable support for proprietary TTS engines.
273 "--with-voxin=no" "--with-ibmtts=no" 274 "--with-voxin=no" "--with-ibmtts=no"
274 "--with-kali=no" "--with-baratinoo=no") 275 "--with-kali=no" "--with-baratinoo=no")
276 #:imported-modules ,%pyproject-build-system-modules
277 #:modules ((guix build gnu-build-system)
278 ((guix build pyproject-build-system)
279 #:prefix python:)
280 (guix build utils))
275 #:phases 281 #:phases
276 (modify-phases %standard-phases 282 (modify-phases %standard-phases
277 (add-after 'unpack 'patch-bin-bash 283 (add-after 'unpack 'patch-bin-bash
278 (lambda* (#:key inputs #:allow-other-keys) 284 (lambda* (#:key inputs #:allow-other-keys)
279 (substitute* "src/modules/generic.c" 285 (substitute* "src/modules/generic.c"
280 (("/bin/bash") 286 (("/bin/bash")
281 (search-input-file inputs "/bin/bash")))))))) 287 (search-input-file inputs "/bin/bash")))))
288 (add-after 'install 'wrap-spd-conf
289 (lambda* (#:key inputs outputs #:allow-other-keys)
290 (wrap-program (search-input-file outputs "bin/spd-conf")
291 `("GUIX_PYTHONPATH" =
292 (,(getenv "GUIX_PYTHONPATH")
293 ,(python:site-packages inputs outputs)))))))))
282 (native-inputs 294 (native-inputs
283 (list autoconf 295 (list autoconf
284 automake 296 automake
@@ -297,7 +309,7 @@ efficiency through the use of a compact vector representation of n-grams.")
297 pipewire 309 pipewire
298 pulseaudio 310 pulseaudio
299 python 311 python
300 python-xdg-base-dirs)) 312 python-pyxdg))
301 (synopsis "Common interface to speech synthesizers") 313 (synopsis "Common interface to speech synthesizers")
302 (description "The Speech Dispatcher project provides a high-level 314 (description "The Speech Dispatcher project provides a high-level
303device independent layer for access to speech synthesis through a simple, 315device independent layer for access to speech synthesis through a simple,