From 2b5949d67d2fb882fd09d8b2fbe534ce3af9dc5a Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Fri, 6 Aug 2021 02:50:09 +0200 Subject: [PATCH] haskellPackages.al: fix build on darwin by providing OpenAL --- pkgs/development/haskell-modules/configuration-darwin.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 48484dec9b3..4c0b491ccd6 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -58,6 +58,12 @@ self: super: { OpenAL = addExtraLibrary super.OpenAL darwin.apple_sdk.frameworks.OpenAL; + al = overrideCabal super.al (drv: { + libraryFrameworkDepends = [ + darwin.apple_sdk.frameworks.OpenAL + ] ++ (drv.libraryFrameworkDepends or []); + }); + proteaaudio = addExtraLibrary super.proteaaudio darwin.apple_sdk.frameworks.AudioToolbox; # the system-fileio tests use canonicalizePath, which fails in the sandbox