Applied this patch and respective ones in other repos. All builds have
run and packages should now be available in the mirror (except hg.sr.ht,
for which builds is not possible on my side).
While I'm open to contributions to this project, this one was kind of a
hassle to manage on my side; so I'd appreciate if we could refrain from
such large/invasive changes unless they are really needed.