Janneke Nieuwenhuizen <jann...@gnu.org> writes: > [...] >> And when the executable's `/proc/self/exe` matches `GUIX_INTERPRETER_FILE`, >> we can get the script file name from `GUIX_MAIN_SCRIPT_FILE`. Alternatively, >> we can try to construct the script file name from command line arguments, but >> that won't work when you run a script using a relative file name and its >> current working directory changed before we figure out the script file name. > > Would this work with `guix pack' tarball archives, esp. think > cross-built `guix pack' archives for MinGW?
I think this should work for `guix pack' when the target is a linux system, MingGW won't work with '/proc/self/exe', but maybe we can find something similiar. I'll keep this in mind and do some tests later, thanks!