nix-user-chroot icon indicating copy to clipboard operation
nix-user-chroot copied to clipboard

Document possible gotcha related to /homeless-shelter

Open collares opened this issue 2 years ago • 0 comments

By default, Nix builders set HOME to /homeless-shelter, under the expectation that creating it or writing to it will fail. Using nix-user-chroot, this can succeed. In my case, I was building Emacs and it wrote some files to /homeless-shelter instead of $out, causing them not to be included in the built package. In this particular case, Emacs' use of the home directory is probably an upstream bug caused by recent changes in emacs, but having a writable /homeless-shelter during build might expose bugs in other packages too, so perhaps documenting this possible problem is valuable.

collares avatar Jan 11 '23 17:01 collares