IANAL, but my understanding is that whatever patents and industrial design rights Nintendo had on the N64 expired long ago, so replicating N64 hardware is perfectly legal as long as you don't use the original logos and trademarks.
This is likely not the case on the N64, but it's an interesting bit of detail of how Nintendo goes about things.