pcaudiolib, espeak-ng: fix darwin builds
This commit is contained in:
parent
1f3eaa4093
commit
7344f8d5e8
3 changed files with 24 additions and 5 deletions
|
@ -15,6 +15,9 @@
|
|||
, pcaudiolib
|
||||
, sonicSupport ? true
|
||||
, sonic
|
||||
, CoreAudio
|
||||
, AudioToolbox
|
||||
, AudioUnit
|
||||
, alsa-plugins
|
||||
, makeWrapper
|
||||
}:
|
||||
|
@ -42,9 +45,20 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = lib.optional mbrolaSupport mbrola
|
||||
++ lib.optional pcaudiolibSupport pcaudiolib
|
||||
++ lib.optional sonicSupport sonic;
|
||||
++ lib.optional sonicSupport sonic
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
CoreAudio
|
||||
AudioToolbox
|
||||
AudioUnit
|
||||
];
|
||||
|
||||
preConfigure = "./autogen.sh";
|
||||
# touch ChangeLog to avoid below error on darwin:
|
||||
# Makefile.am: error: required file './ChangeLog.md' not found
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
touch ChangeLog
|
||||
'' + ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-mbrola=${if mbrolaSupport then "yes" else "no"}"
|
||||
|
|
|
@ -38,7 +38,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
++ lib.optional stdenv.isLinux alsa-lib
|
||||
++ lib.optional pulseaudioSupport libpulseaudio;
|
||||
|
||||
preConfigure = ''
|
||||
# touch ChangeLog to avoid below error on darwin:
|
||||
# Makefile.am: error: required file './ChangeLog.md' not found
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
touch ChangeLog
|
||||
'' + ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
|
@ -48,6 +52,5 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ aske ];
|
||||
platforms = platforms.unix;
|
||||
badPlatforms = platforms.darwin;
|
||||
};
|
||||
})
|
||||
|
|
|
@ -31369,7 +31369,9 @@ with pkgs;
|
|||
|
||||
espeak-classic = callPackage ../applications/audio/espeak { };
|
||||
|
||||
espeak-ng = callPackage ../applications/audio/espeak-ng { };
|
||||
espeak-ng = callPackage ../applications/audio/espeak-ng {
|
||||
inherit (darwin.apple_sdk.frameworks) AudioToolbox AudioUnit CoreAudio;
|
||||
};
|
||||
espeak = res.espeak-ng;
|
||||
|
||||
espeakedit = callPackage ../applications/audio/espeak/edit.nix { };
|
||||
|
|
Loading…
Reference in a new issue