The winners of Tuesday's match at Pride Park secured a home tie against United in the fifth round, with the matches to take place in midweek between March 3 and 5, with no replays.
A reunion between Rooney and the team with whom he became a superstar will now go ahead, with the 34-year-old former England frontman netting a 77th-minute penalty in the win over League Two side Northampton.
After joining United from Everton in 2004, Rooney went on to become the club's record goalscorer, netting 253 times in 559 appearances.