Derry will play either Waterford United or Mervue United in the last eight of the FAI Cup.
City will face the winner’s of the third round tie scheduled for September 3.
The full draw is as follows:
Shelbourne v Shamrock Rovers
Bohemians v Dundalk
St Patrick’s Athletic v Drogheda United
Derry City v Waterford United or Mervue United