I found the other thread where you mention that you want to package babashka for Gentoo.
It seems to me that you can invest a large amount of time figuring how to build everything from source (eg. depend on Clojure, figure the dependency tree for babashka, build the classpath, run babashka’s compile script) or you can just get the Linux binary from the releases page in Github and make the Gentoo package just a basic script that pulls that binary and copies it to /usr/local/bin
(or equivalent).