Historic Derry building set to be restored