We obtain the hydrodynamic limit of a simple exclusion process in an
inhomogeneous environment of divergence form. Our main assumption is a suitable
version of Gamma-convergence for the environment. In this way we obtain an
unified approach to recent works on the field.