nixpkgs/pkgs/development/libraries/SDL/setup-hook.sh
2019-11-08 13:28:58 -05:00

8 lines
159 B
Bash

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