doc: mkYarnPackage/mkYarnModules should use offlineCache to prevent IFD

This is not mentioned elsewhere, and can be confusing.
This commit is contained in:
Midnight Veil 2023-12-09 17:54:22 +11:00 committed by GitHub
parent 29558c0722
commit c1678c2567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -354,6 +354,7 @@ mkYarnPackage rec {
- The `echo 9` steps comes from this answer: <https://stackoverflow.com/a/49139496>
- Exporting the headers in `npm_config_nodedir` comes from this issue: <https://github.com/nodejs/node-gyp/issues/1191#issuecomment-301243919>
- `offlineCache` (described [above](#javascript-yarn2nix-preparation)) must be specified to avoid [Import From Derivation](#ssec-import-from-derivation) (IFD) when used inside Nixpkgs.
## Outside Nixpkgs {#javascript-outside-nixpkgs}