Add CoreAudio to sox on macOS

Otherwise no audio devices are available for recording and playback on
macOS.
This commit is contained in:
Väinö Järvelä 2019-03-18 20:17:40 +02:00
parent 58b3b9c34b
commit 3cc74c3a7c
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, stdenv, fetchurl
{ config, lib, stdenv, fetchurl, CoreAudio
, enableAlsa ? true, alsaLib ? null
, enableLibao ? true, libao ? null
, enableLame ? config.sox.enableLame or false, lame ? null
@ -32,7 +32,8 @@ stdenv.mkDerivation rec {
optional enablePNG libpng ++
optional enableLibsndfile libsndfile ++
optionals enableAMR [ amrnb amrwb ] ++
optional enableLibpulseaudio libpulseaudio;
optional enableLibpulseaudio libpulseaudio ++
optional (stdenv.isDarwin) CoreAudio;
meta = {
description = "Sample Rate Converter for audio";

View file

@ -19517,7 +19517,9 @@ in
soulseekqt = libsForQt5.callPackage ../applications/networking/p2p/soulseekqt { };
sox = callPackage ../applications/misc/audio/sox { };
sox = callPackage ../applications/misc/audio/sox {
inherit (darwin.apple_sdk.frameworks) CoreAudio;
};
soxr = callPackage ../applications/misc/audio/soxr { };