On the derivation of homogeneous hydrostatic equations