For the gearbox, on the e36 at least, the e36 m3 6-speed gearbox will fit but you have to use the m3s clutch.
For the driveshafts, on the e36 the driveshaft is in two pieces, The front and the Back.
The front comes in two different types, 5-speed and 6-speed.
The rear comes in two different types, small case diff. and medium case differential.
(there are other types for the evo and automatics but theyre not relavent at the moment)
So in your case you should use the 6-speed front driveshaft and the rear could be either depending on what diff. you have.
written by "RouteZeroDesign" in the thread "a swisss 318is e30" page 2
i didnt tried that, but i will when i found a gearbox...