The chemical vapor deposition of nickel phosphide or selenide thin films from a single precursor.