This is SR20 stuff, but I doubt that the CA18 is THAT much different when it comes to wiring...

There are actually very few things the engine itself needs from the body as far as wiring goes (other than the Nissan ECU that you will already have I guess)

Have a read through this website: