cmus: add AudioUnit dependency

AudioUnit is required on macOS.

See ./configuration output line:
checking for COREAUDIO_LIBS (-framework CoreAudio -framework AudioUnit)... ld: framework not found AudioUnit
This commit is contained in:
Alessandro Mecca 2021-02-09 05:18:02 +01:00
parent 30fa054bfd
commit f4a9a35ac8
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ config, lib, stdenv, fetchFromGitHub, runCommand, ncurses, pkg-config
, libiconv, CoreAudio
, libiconv, CoreAudio, AudioUnit
, alsaSupport ? stdenv.isLinux, alsaLib ? null
# simple fallback for everyone else
@ -121,7 +121,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ncurses ]
++ lib.optional stdenv.cc.isClang clangGCC
++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio ]
++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit ]
++ flatten (concatMap (a: a.deps) opts);
makeFlags = [ "LD=$(CC)" ];

View File

@ -21432,7 +21432,7 @@ in
cmatrix = callPackage ../applications/misc/cmatrix { };
cmus = callPackage ../applications/audio/cmus {
inherit (darwin.apple_sdk.frameworks) CoreAudio;
inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio;
libjack = libjack2;
ffmpeg = ffmpeg_2;
};