I presume the 325TDS engine won't fit straight in an E30 because of the sump shape. Possibly the E34 version will fit, the same as is the case with M50s.
One thing I have discovered is that the M50 sump won't fit, as the TDS sump is a few milimetres longer.

