environment: Add only the specified outputs of the dependencies.