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
|
, pcaudiolib
|
||||||
, sonicSupport ? true
|
, sonicSupport ? true
|
||||||
, sonic
|
, sonic
|
||||||
|
, CoreAudio
|
||||||
|
, AudioToolbox
|
||||||
|
, AudioUnit
|
||||||
, alsa-plugins
|
, alsa-plugins
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
@ -42,9 +45,20 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = lib.optional mbrolaSupport mbrola
|
buildInputs = lib.optional mbrolaSupport mbrola
|
||||||
++ lib.optional pcaudiolibSupport pcaudiolib
|
++ 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 = [
|
configureFlags = [
|
||||||
"--with-mbrola=${if mbrolaSupport then "yes" else "no"}"
|
"--with-mbrola=${if mbrolaSupport then "yes" else "no"}"
|
||||||
|
|
|
@ -38,7 +38,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
++ lib.optional stdenv.isLinux alsa-lib
|
++ lib.optional stdenv.isLinux alsa-lib
|
||||||
++ lib.optional pulseaudioSupport libpulseaudio;
|
++ 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
|
./autogen.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -48,6 +52,5 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ aske ];
|
maintainers = with maintainers; [ aske ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
badPlatforms = platforms.darwin;
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
@ -31369,7 +31369,9 @@ with pkgs;
|
||||||
|
|
||||||
espeak-classic = callPackage ../applications/audio/espeak { };
|
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;
|
espeak = res.espeak-ng;
|
||||||
|
|
||||||
espeakedit = callPackage ../applications/audio/espeak/edit.nix { };
|
espeakedit = callPackage ../applications/audio/espeak/edit.nix { };
|
||||||
|
|
Loading…
Reference in a new issue