From 0e0fbc6760179ce6834d1fd9a50af2c7a8b73533 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Fri, 6 Aug 2021 01:46:44 +0200 Subject: haskellPackages.SDL-image: fix build on darwin Interestingly SDL-image exhibits both the problems of SDL-mixer and SDL-ttf have. How the respective fixes we apply here as well work is explained in 1a68ebf98573291fc4a8d8e7b35ea2e74a0d6665 and 2a8105fc58644307007f326de25b357d216d3ad7. --- .../haskell-modules/patches/SDL-image-darwin-hsc.patch | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkgs/development/haskell-modules/patches/SDL-image-darwin-hsc.patch (limited to 'pkgs/development/haskell-modules/patches') diff --git a/pkgs/development/haskell-modules/patches/SDL-image-darwin-hsc.patch b/pkgs/development/haskell-modules/patches/SDL-image-darwin-hsc.patch new file mode 100644 index 0000000000000..74d7fca853f7e --- /dev/null +++ b/pkgs/development/haskell-modules/patches/SDL-image-darwin-hsc.patch @@ -0,0 +1,9 @@ +--- SDL-image-0.6.2.0/Graphics/UI/SDL/Image/Version.hsc.orig 2021-08-06 01:21:05.000000000 +0200 ++++ SDL-image-0.6.2.0/Graphics/UI/SDL/Image/Version.hsc 2021-08-06 01:21:56.000000000 +0200 +@@ -1,4 +1,6 @@ + #include "SDL_image.h" ++-- override SDL_main.h redefining main to SDL_main on darwin ++#define main main + module Graphics.UI.SDL.Image.Version + ( compiledFor + , linkedWith -- cgit 1.4.1