The calculated distance (air line) between Edinburgh and Derry is approximately 174 miles respectively 280 kilometers.
By car or train, the actual journey to Derry is certainly longer, as only the direct route (as the crow flies) between Edinburgh and Derry has been calculated here.