nixguix: Split 'integrity' extraction out of resolve_revision_from
We will need it independently in a future commit