I couldn't see UEFA allowing that, unless Derry quit the League of Ireland and re-joined the Irish League.
I can't think of any club in World Football that competes in one FA's league and another FA's cup, except in Liechtenstein, where they have no league and all clubs play in Germany or Switzerland.
Bookmarks