Have a welding shop nearby? If so, pick up a 1/8″ stainless welding rod, either stick or TIG and problem solved. You might want to check the size of the hole in the driveshaft with a drill bit first though to make sure you get the correct size. I don’t have a pin handy at the moment but I think they are closer to 3/32″ diameter. What size motor are you working on?
Using anything other than stainless is just asking for trouble as a nail or whatever will eventually rust out and fail. That would mean an overheat situation which could cost a lot more in the long run than a piece of the correct material would in the first place. It’s always the smallest parts in a motor which are the most important.