In the shader node, scale up the UVs to make the texture tile and then use a generated texture as the factor on a mix RGB node between the textures you want to use. Simples.
Now to figure out how to control where rocks are spawned using a texture...
Obviously I wasn't smart enough to figure this out without watching a bunch of youtube videos like this one... :-0