1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00

Merge pull request #57868 from Kaali/coreaudio-sox

Add CoreAudio to sox on macOS
This commit is contained in:
Daiderd Jordan 2019-03-19 19:11:13 +01:00 committed by GitHub
commit 373488e6f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -19521,7 +19521,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 { };