about summary refs log tree commit diff
path: root/pkgs/applications/audio/espeak-ng
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-04 03:40:37 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-04 03:40:37 +0100
commit618ccc0663b956d3387e54ae1e863718d61c98c4 (patch)
treec62ca85ab19fc2fc7bc0420536f735f739cc6a25 /pkgs/applications/audio/espeak-ng
parentb1b0b6e3e76960d83239fc293cf5902adb01a91d (diff)
espeak-ng: fix build with clang 16
Diffstat (limited to 'pkgs/applications/audio/espeak-ng')
-rw-r--r--pkgs/applications/audio/espeak-ng/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/audio/espeak-ng/default.nix b/pkgs/applications/audio/espeak-ng/default.nix
index a773bbfa1c545..f0aebf4e4a32a 100644
--- a/pkgs/applications/audio/espeak-ng/default.nix
+++ b/pkgs/applications/audio/espeak-ng/default.nix
@@ -1,6 +1,7 @@
 { stdenv
 , lib
 , fetchFromGitHub
+, fetchpatch
 , autoconf
 , automake
 , which
@@ -33,7 +34,13 @@ stdenv.mkDerivation rec {
     hash = "sha256-aAJ+k+kkOS6k835mEW7BvgAIYGhUHxf7Q4P5cKO8XTk=";
   };
 
-  patches = lib.optionals mbrolaSupport [
+  patches = [
+    # Fix build with Clang 16.
+    (fetchpatch {
+      url = "https://github.com/espeak-ng/espeak-ng/commit/497c6217d696c1190c3e8b992ff7b9110eb3bedd.patch";
+      hash = "sha256-KfzqnRyQfz6nuMKnsHoUzb9rn9h/Pg54mupW1Cr+Zx0=";
+    })
+  ] ++ lib.optionals mbrolaSupport [
     # Hardcode correct mbrola paths.
     (substituteAll {
       src = ./mbrola.patch;