Injective resolutions of BG and derived moduli spaces of local systems