haskell: fix build of SDL-* libraries

This commit is contained in:
Benno Fünfstück 2015-08-26 16:20:21 +02:00
parent a5e28d5319
commit 271926d00d

View File

@ -973,4 +973,23 @@ self: super: {
hackage-security = dontDistribute super.hackage-security;
hackage-security-HTTP = dontDistribute super.hackage-security-HTTP;
# The cabal files for these libraries do not list the required system dependencies.
SDL-image = overrideCabal super.SDL-image (drv: {
librarySystemDepends = [ pkgs.SDL pkgs.SDL_image ] ++ drv.librarySystemDepends or [];
});
SDL-ttf = overrideCabal super.SDL-ttf (drv: {
librarySystemDepends = [ pkgs.SDL pkgs.SDL_ttf ];
});
SDL-mixer = overrideCabal super.SDL-mixer (drv: {
librarySystemDepends = [ pkgs.SDL pkgs.SDL_mixer ];
});
SDL-gfx = overrideCabal super.SDL-gfx (drv: {
librarySystemDepends = [ pkgs.SDL pkgs.SDL_gfx ];
});
SDL-mpeg = overrideCabal super.SDL-mpeg (drv: {
configureFlags = (drv.configureFlags or []) ++ [
"--extra-lib-dirs=${pkgs.smpeg}/lib"
"--extra-include-dirs=${pkgs.smpeg}/include/smpeg"
];
});
}