The genomic basis of evolved virus resistance is dependent on environmental resources