Advection-mediated competition in general environments