1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs/development/haskell-modules/patches
sternenseemann 9a32fd5c49 haskellPackages.SDL-ttf: fix build on darwin
SDL_main.h which is included from SDL_ttf.h contains a #define which redefines
main to SDL_main. This has to do with the way SDL binaries are linked and
executed on darwin which is explained here [1]. However this is bad news for
hsc2hs intermediate C sources which in this case only to gather version
information from the headers and not to run a full SDL application.

Thus compilation would fail due to this issue which we can avoid by redefining
main to main again after including the header.

[1]: http://www.ariis.it/link/repos/sdl-bindings/hssdl-image/MACOSX
2021-08-06 14:39:22 +02:00
..
amazonka-Allow-http-client-0.6.patch
amazonka-core-Allow-http-client-0.6.patch
bloomfilter-fix-on-32bit.patch
darcs-2.14.2-Compile-against-GHC-8.8.patch
darcs-setup.patch
encoding-Cabal-2.0.patch
fix-dbus-for-ghc-8.10.x.patch
ghc-paths-nix-ghcjs.patch
ghc-paths-nix.patch
GLUT.patch
hasura-884-compat.patch
hunspell.patch
opencv-fix-116.patch
SDL-ttf-darwin-hsc.patch haskellPackages.SDL-ttf: fix build on darwin 2021-08-06 14:39:22 +02:00
servant-client-core-redact-auth-header.patch
sexpr-0.2.1.patch
xattr-fix-build.patch
xmonad-nix.patch