The Pakistani government can serve as a powerful ally for Iran, if not for any genuine friendship between us, then at least because of mutual political / military benefits.
This will become an option as US influence over the Pakistani people wanes.
However, Pakistan is a powerful ally of China and enemy of India. In the mid term future such an entangling alliance may bring Iran in over its head.
But do not fear!