From c4a42a726d049244b3b6eee789d78cc048a74cf4 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 1 Oct 2019 08:06:54 +0300 Subject: [PATCH] haskellPackages.proteaaudio: link with the AudioToolbox framework on Darwin The build is currently failing on Darwin due to missing headers. see #70151 --- 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 acab791e963..81662b4e9da 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -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: {