I don't even need pkgin for this. I "just" need to parse pkg_summary.gz, do some curling, and extraction and whatnot.
Doesn't seem too bad, and I don't need all of the summary either.
So, what if I made a small tool, in Rust, that I could point to a pkg_summary (or .gz, or .bz2, depending on how I feel), tell it the package I want, and it would download the package, all its dependencies, into the store. To make my life easier, I'd download them to /sexshop/toys/binaries, yadayada.
But I'm getting ahead of myself again! Lets do small steps.
- Parse the currently relevant bits of
pkg_summary. - Figure out the dependencies (recursively)
- Download all the things (computing their hashes in the process)
And then I'll go from there.
So, the current idea is to create a
scheme-rsruntime, where I can fiddle a bit with the store, and download a single binary package from NetBSD's CDN.As a first step: no declarative config. Run the scheme script directly.