Also great idea to talk about ‘guix.scm’, @efraim!
It’s an aspect of #Guix we rarely highlight even though it’s very useful for devs. Maybe we should improve support for this use case?
One option is to make those dependencies Git submodules so that ‘project/guix.scm’ can (include "lib/guix.scm"), but like you write, it would be nicer to avoid submodules.
You could use ‘update-cached-checkout’ in ‘project/guix.scm’ to fetch the library and include ‘lib/guix.scm’ from there. Not sure if the result would be pleasant.
I’m curious to see what you come up with!
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!