A heritage centre and cafe in Derbyshire is shutting its doors after 40 years – with economic challenges among the factors that led to the closure.