mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
12 lines
201 B
Bash
12 lines
201 B
Bash
addSDLPath () {
|
|
if [ -e "$1/include/SDL" ]; then
|
|
export SDL_PATH="$SDL_PATH $1/include/SDL"
|
|
fi
|
|
}
|
|
|
|
if test -n "$crossConfig"; then
|
|
crossEnvHooks+=(addSDLPath)
|
|
else
|
|
envHooks+=(addSDLPath)
|
|
fi
|