Van der Waalsian theory of freezing