Commit 1ee5ffc1 authored by Weijia Wang's avatar Weijia Wang
Browse files

speech-tools: fix build on aarch64-darwin

parent d56b19e2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchurl
, fetchpatch
, ncurses
, alsa-lib
, CoreServices
@@ -17,6 +18,14 @@ stdenv.mkDerivation rec {
    sha256 = "1k2xh13miyv48gh06rgsq2vj25xwj7z6vwq9ilsn8i7ig3nrgzg4";
  };

  patches = [
    # Fix build on Apple Silicon. Remove in the next release.
    (fetchpatch {
      url = "https://github.com/festvox/speech_tools/commit/06141f69d21bf507a9becb5405265dc362edb0df.patch";
      hash = "sha256-tRestCBuRhak+2ccsB6mvDxGm/TIYX4eZ3oppCOEP9s=";
    })
  ];

  buildInputs = [
    ncurses
  ] ++ lib.optionals stdenv.isLinux [