tried:
$ sudo env HOSTS="x86_64-linux-gnu" ./contrib/guix/guix-build --container --share=$PWD
[sudo] password for danny:
Checking that we can connect to the guix-daemon...
Hint: If this hangs, you may want to try turning your guix-daemon off and on
again.
make: Entering directory '/home/danny/work/builds/desktop/bitcoin/depends'
make[1]: Entering directory '/home/danny/work/builds/desktop/bitcoin/depends'
make[1]: Leaving directory '/home/danny/work/builds/desktop/bitcoin/depends'
make: Leaving directory '/home/danny/work/builds/desktop/bitcoin/depends'
INFO: Building 29.0 for platform triple x86_64-linux-gnu:
...using reference timestamp: 1744384813
...running at most 8 jobs
...from worktree directory: '/home/danny/work/builds/desktop/bitcoin'
...bind-mounted in container to: '/bitcoin'
...in build directory: '/home/danny/work/builds/desktop/bitcoin/guix-build-29.0/distsrc-29.0-x86_64-linux-gnu'
...bind-mounted in container to: '/distsrc-base/distsrc-29.0-x86_64-linux-gnu'
...outputting in: '/home/danny/work/builds/desktop/bitcoin/guix-build-29.0/output/x86_64-linux-gnu'
...bind-mounted in container to: '/outdir-base/x86_64-linux-gnu'
ADDITIONAL FLAGS (if set)
ADDITIONAL_GUIX_COMMON_FLAGS:
ADDITIONAL_GUIX_ENVIRONMENT_FLAGS:
ADDITIONAL_GUIX_TIMEMACHINE_FLAGS:
guix shell: error: statfs: /home/danny/work/builds/desktop/bitcoin: Permission denied