Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document possible gotcha related to /homeless-shelter #106

Open
collares opened this issue Jan 11, 2023 · 0 comments
Open

Document possible gotcha related to /homeless-shelter #106

collares opened this issue Jan 11, 2023 · 0 comments

Comments

@collares
Copy link

collares commented Jan 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant