I've done something similar but filled in the space with hot glue to mold a connector. If you wax or otherwise lubricate the socket, the hot glue won't stick to it and you can use the socket itself to mold the shape of the plug.
A better option may be to retrofit the equipment with standard IEC power sockets which can be salvaged from junk computer equipment.