Extract the list of required packages into a defconst.