mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
doc: use writableTmpDirAsHomeHook
This commit is contained in:
parent
11a695488e
commit
540ddbcf2f
5 changed files with 13 additions and 6 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue