Unverified Commit e51c6d0b authored by Lin Jian's avatar Lin Jian Committed by GitHub
Browse files

doc/stdenv: delete a confusing sentence for writableTmpDirAsHomeHook (#379105)

parents c5ac9d23 9dde0e79
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1394,8 +1394,7 @@ hook, as they might introduce unexpected behavior in some specific cases.
This setup hook ensures that the directory specified by the `HOME` environment
variable is writable. If it is not, the hook assigns `HOME` to a writable
directory (in `.home` in `$NIX_BUILD_TOP`). This adjustment is necessary for
certain packages that require write access to a home directory. This hook can
be added to any phase.
certain packages that require write access to a home directory.

By setting `HOME` to a writable directory, this setup hook prevents failures in
packages that attempt to write to the home directory.