nixpkgs/pkgs/development/libraries/SDL/setup-hook.sh
Puck Meerburg 1038cd5ad8 SDL: Add library paths of all SDL sub-packages to sdl-config
Because of how nixpkgs works, all the SDL-umbrella libraries are in
different folders. On a usual system, when using `sdl-config --libs`,
this means that SDL_gfx would also be on the linker path. Some packages
seem to depend on this being the case.
2019-10-23 13:22:07 +00:00

9 lines
192 B
Bash

addSDLPath () {
if [ -e "$1/include/SDL" ]; then
export SDL_PATH="$SDL_PATH $1/include/SDL"
export SDL_LIB_PATH="$SDL_LIB_PATH -L$1/lib"
fi
}
addEnvHooks "$hostOffset" addSDLPath