Nitrile (II) was prepared from the known amine (I) by diazotization, followed by cyanation with KCN and CuCN. Addition of H2S to (II) in the presence of Et3N in DMF afforded the thioamide (III), which was condensed with chloromalonaldehyde (IV) to produce thiazole (V). Reaction of the formyl group of (V) with hydroxylamine and sodium formate then yielded the target nitrile.