Skip to content

Commit

Permalink
doc: mkYarnPackage/mkYarnModules should use offlineCache to prevent IFD
Browse files Browse the repository at this point in the history
This is not mentioned elsewhere, and can be confusing.
  • Loading branch information
midnightveil authored Dec 9, 2023
1 parent 29558c0 commit c1678c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/languages-frameworks/javascript.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit c1678c2

Please sign in to comment.