First of all, from Pakistan's perspective the investment on nuclear assets is probably the best investment Pakistan has ever made.
Also, it is not wasting money because it keeps India at bay.
First of all Paks investment in nukes is its worst investment. India never ever wanted to invade or cause problems in Pak.
It is only Pak that has forever been trying to be sneaky first by attacking india in 65, then by doing kargil with nuke umbrella and now sending terrorsits knowing that the nuke is a detrrent
what did pakistan get in return. nothing. it has spent money on nukes so that it can continue to be a bad boy in the neighbourhood.