It's the E36 M3 transmission. It is a 5-speed. Seeing that the bodies are pretty much the same, it should physically fit. After that, I don't have a clue.
1995 325I, tinted windows, K&N, debaffled air box, BMW style #104 wheels, Nighthawk low beams, smoked side markers, smoked corners, smoked taillights, M3 style heated mirrors, various interior bits, Bosal cat-back