Derived deformations and quantum cohomology