haskellPackages.proteaaudio: link with the AudioToolbox framework on Darwin

The build is currently failing on Darwin due to missing headers. see #70151
This commit is contained in:
Konstantinos Sideris 2019-10-01 08:06:54 +03:00
parent 0b1fb4f2d2
commit c4a42a726d

View File

@ -104,6 +104,11 @@ self: super: builtins.intersectAttrs super {
then addExtraLibrary super.OpenAL pkgs.darwin.apple_sdk.frameworks.OpenAL
else super.OpenAL;
# Ensure the necessary frameworks for Darwin.
proteaaudio = if pkgs.stdenv.isDarwin
then addExtraLibrary super.proteaaudio pkgs.darwin.apple_sdk.frameworks.AudioToolbox
else super.proteaaudio;
ghcid = enableSeparateBinOutput super.ghcid;
hzk = overrideCabal super.hzk (drv: {