Merge pull request #273075 from midnightveil/patch-1

doc: mkYarnPackage/mkYarnModules should use offlineCache to prevent IFD
This commit is contained in:
Silvan Mosberger 2024-01-18 16:12:54 +01:00 committed by GitHub
commit 15a34f609f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}