From 2d7375e64989912dd622eb9cb7385fb3a1902054 Mon Sep 17 00:00:00 2001 From: taku0 Date: Thu, 11 Feb 2016 15:54:19 +0900 Subject: [PATCH] libao: add dependencies for Darwin frameworks --- pkgs/development/libraries/libao/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libao/default.nix b/pkgs/development/libraries/libao/default.nix index a8948e8ae8c0..c0a6d4b6b1f1 100644 --- a/pkgs/development/libraries/libao/default.nix +++ b/pkgs/development/libraries/libao/default.nix @@ -1,4 +1,5 @@ { lib, stdenv, fetchurl, pkgconfig, libpulseaudio, alsaLib, libcap +, CoreAudio, CoreServices, AudioUnit , usePulseAudio }: stdenv.mkDerivation rec { @@ -12,7 +13,8 @@ stdenv.mkDerivation rec { buildInputs = [ pkgconfig ] ++ lib.optional stdenv.isLinux (if usePulseAudio then libpulseaudio else alsaLib) ++ - lib.optional stdenv.isLinux libcap; + lib.optional stdenv.isLinux libcap ++ + lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ]; meta = { longDescription = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 046d3cdaa1f5..f541c5feac8b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7074,6 +7074,7 @@ let libao = callPackage ../development/libraries/libao { usePulseAudio = config.pulseaudio or true; + inherit (darwin.apple_sdk.frameworks) CoreAudio CoreServices AudioUnit; }; libabw = callPackage ../development/libraries/libabw { };