haskellPackages.OpenAL: link with the OpenAL framework on Darwin (#70150)

* haskellPackages.OpenAL: link with the OpenAL framework on Darwin

The missing framework caused a build failure on Darwin. Fixes #68306.
This commit is contained in:
mujx 2019-10-05 22:44:09 +03:00 committed by Peter Simons
parent 6b8400381c
commit 0b1fb4f2d2

View File

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