GoeIP2 module for nginx

I want to add GeoIp2 module for the nginx. Can anyone explain how to add it without breaking the nginx configuration?