Unverified Commit b746e126 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #265372 from wegank/espeak-clang

espeak-ng: fix build with clang 16
parents 6ee67100 618ccc06
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
{ 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;