All subaru transmissions will bolt to all subaru motors... However, the rest of the driveline is matched to the car. I have no clue which cars need which final drive ratio.... Also, keep in mind that putting in a manual tranny may require things like a different driveshaft or front axles.
Hopefully someone else can give you more input than I can.
Everything I said applies if you wanted to install the WRX one. Seems like it would be much cheaper and easier to find a manual one for your specific car. Also keep in mind, more than one model/year used the same one as you so use that to extend your search criteria.