Sadly, nuclear weapons are one of the few ways to guarantee a country's independence and safety in the age of global imperialism.
Iran tried negotiating, and look what it got them. Had they developed the weapons successfully, there'd be no war, and all the people dead would still be alive.
North Korea was in a considerably worse position before acquiring nuclear weapons, too. Now look at it. Doing whatever it feels like.
Similar situations with Pakistan and India.
That's just how it is when the world is run by genocidal sociopaths with a deep passion for children.