New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/32238#issuecomment-891494842 Comment: What you want to do is add a distfile downloading the submodule at the correct commit, then moving it into place. Check out how wayfire does it, for an example.