speechd: 0.11.5 → 0.12.1

https://github.com/brailcom/speechd/releases/tag/0.12.0
https://github.com/brailcom/speechd/releases/tag/0.12.1

The upgrade to `0.12.0` enables building `speechd-minimal` on Darwin.

Peter Kling 5537661d 7b793f25

Changed files
+11 -8
pkgs
by-name
sp
speechd
+11 -8
pkgs/by-name/sp/speechd/package.nix
···
let
inherit (python3Packages) python pyxdg wrapPython;
in
-
stdenv.mkDerivation rec {
+
stdenv.mkDerivation (finalAttrs: {
pname = "speech-dispatcher";
-
version = "0.11.5";
+
version = "0.12.1";
src = fetchurl {
-
url = "https://github.com/brailcom/speechd/releases/download/${version}/${pname}-${version}.tar.gz";
-
sha256 = "sha256-HOR1n/q7rxrrQzpewHOb4Gdum9+66URKezvhsq8+wSs=";
+
url = "https://github.com/brailcom/speechd/releases/download/${finalAttrs.version}/speech-dispatcher-${finalAttrs.version}.tar.gz";
+
sha256 = "sha256-sUpSONKH0tzOTdQrvWbKZfoijn5oNwgmf3s0A297pLQ=";
};
patches =
···
libsndfile
libao
libpulseaudio
+
python
+
]
+
++ lib.optionals withAlsa [
alsa-lib
-
python
]
++ lib.optionals withEspeak [
espeak
···
"--with-pico"
];
-
postPatch = ''
+
postPatch = lib.optionalString withPico ''
substituteInPlace src/modules/pico.c --replace "/usr/share/pico/lang" "${svox}/share/pico/lang"
'';
···
berce
jtojnar
];
-
platforms = platforms.linux;
+
# TODO: remove checks for `withPico` once PR #375450 is merged
+
platforms = if withAlsa || withPico then platforms.linux else platforms.unix;
mainProgram = "speech-dispatcher";
};
-
}
+
})