Since each suspect told the truth just once, Eric's statements mean that it was either Derek or Alan.
If it was Alan, then both of Brian's statements would be true, which isn't allowed (and similarly both of Derek's would be false).
Therefore it was Derek. This can be double checked with all of the other statements. QED.