build: Correctly inherit base packages