doc: use writableTmpDirAsHomeHook

This commit is contained in:
Pol Dellaiera 2025-04-19 21:37:21 +02:00
parent 11a695488e
commit 540ddbcf2f
5 changed files with 13 additions and 6 deletions

View file

@ -646,8 +646,11 @@ It's important to use the `--offline` flag. For example if you script is `"build
```nix
{
nativeBuildInputs = [
writableTmpDirAsHomeHook
];
buildPhase = ''
export HOME=$(mktemp -d)
yarn --offline build
'';
}