haskell: fix build of SDL-* libraries
This commit is contained in:
parent
a5e28d5319
commit
271926d00d
1 changed files with 19 additions and 0 deletions
|
@ -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"
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue