From 0b1fb4f2d20dd2cc8965e9e3a8fbd69afd1e174b Mon Sep 17 00:00:00 2001 From: mujx Date: Sat, 5 Oct 2019 22:44:09 +0300 Subject: [PATCH] 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. --- pkgs/development/haskell-modules/configuration-nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index ec9f4285f87..acab791e963 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -99,6 +99,11 @@ self: super: builtins.intersectAttrs super { 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; hzk = overrideCabal super.hzk (drv: {