From 2844dcd1a54026491ee751b6c8ae759ac33c0633 Mon Sep 17 00:00:00 2001 From: Soup of the tomato kind <43444191+Soup-64@users.noreply.github.com> Date: Wed, 7 Jan 2026 12:30:36 -0500 Subject: [PATCH] speechd: fix generic synth with upstream patch --- pkgs/by-name/sp/speechd/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sp/speechd/package.nix b/pkgs/by-name/sp/speechd/package.nix index 361304524ec1..cb10fc36fa1f 100644 --- a/pkgs/by-name/sp/speechd/package.nix +++ b/pkgs/by-name/sp/speechd/package.nix @@ -4,6 +4,7 @@ replaceVars, pkg-config, fetchurl, + fetchpatch, python3Packages, gettext, itstool, @@ -53,6 +54,11 @@ stdenv.mkDerivation (finalAttrs: { # patch context bindir = null; }) + (fetchpatch { + name = "use-binsh.patch"; + url = "https://github.com/brailcom/speechd/commit/66d5fe65cffd4c0ce9cfb4c6d292866ed8726999.diff?full_index=1"; + hash = "sha256-7R5BH6QmxovvtXoH/T76qu6YMfm1HE+CA0eB0mzwmfY="; + }) ] ++ lib.optionals (withEspeak && espeak.mbrolaSupport) [ # Replace FHS paths. @@ -129,7 +135,6 @@ stdenv.mkDerivation (finalAttrs: { postPatch = lib.optionalString withPico '' substituteInPlace src/modules/pico.c --replace "/usr/share/pico/lang" "${svox}/share/pico/lang" - substituteInPlace src/modules/generic.c --replace-fail "/bin/bash" "${runtimeShell}" ''; installFlags = [