speech-tools: fix darwin build
This commit is contained in:
parent
8e644bcfa7
commit
d56b19e2fc
@ -1,4 +1,12 @@
|
||||
{ lib, stdenv, fetchurl, alsa-lib, ncurses }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, ncurses
|
||||
, alsa-lib
|
||||
, CoreServices
|
||||
, AudioUnit
|
||||
, Cocoa
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "speech_tools";
|
||||
@ -9,7 +17,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1k2xh13miyv48gh06rgsq2vj25xwj7z6vwq9ilsn8i7ig3nrgzg4";
|
||||
};
|
||||
|
||||
buildInputs = [ alsa-lib ncurses ];
|
||||
buildInputs = [
|
||||
ncurses
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
alsa-lib
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
CoreServices
|
||||
AudioUnit
|
||||
Cocoa
|
||||
];
|
||||
|
||||
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++" ];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: libestools.a(editline.o):(.bss+0x28): multiple definition of
|
||||
@ -42,7 +60,7 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
description = "Text-to-speech engine";
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
license = licenses.free;
|
||||
};
|
||||
|
||||
|
@ -25104,7 +25104,9 @@ with pkgs;
|
||||
|
||||
speechd = callPackage ../development/libraries/speechd { };
|
||||
|
||||
speech-tools = callPackage ../development/libraries/speech-tools { };
|
||||
speech-tools = callPackage ../development/libraries/speech-tools {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit Cocoa;
|
||||
};
|
||||
|
||||
speex = callPackage ../development/libraries/speex {
|
||||
fftw = fftwFloat;
|
||||
|
Loading…
Reference in New Issue
Block a user