I want to package ghostty (https://github.com/ghostty-org/ghostty/) for
personal use (upstreaming it to guix repos seems very difficult),
but I cannot figure out how to get around `zig build` fetching
dependencies (and always failing because of the sandbox during the build
phase).
Usually, you would run `zig build --fetch` to pre-fetch every package,
but that doesn't seem to be an option here (unless internet access is
allowed during a post-fetch phase for some reason?)
so I would need to provide a list of urls and hashes that guix can
download and place into the correct .zig-cache subdirectory, but the
guix zig-build-system doesn't seem to provide that.
From a quick scan of the code
(https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/zig-build-system.scm#n92)
it seems like there is a function for doing just that automagically, but
it still does not appear to work.
I'm also not sure what the "GUIX_ZIG_PACKAGE_PATH" is or where it is
defined (quick grep through the guix repo didn't reveal anything useful
to me).
My ideal solution would be something along the lines of
(arguments #:zig-dependencies-to-fetch (list (origin ...) (origin ...)
(origin ...)))
but that doesn't appear possible with guix's zig-build-system