Skew polynomial rings and nilpotent derivations