How do I pass a URL segment to a search parameter?
You'd need to use Twig's string concatenation in order to do this with the ~ operator.

{% set entries = craft.entries.section('calendar').search('eventstart:' ~ year ~ '-' ~ month) %}