Emergency work to save historic Derby building at risk of co