From c1678c25679f3803509c66ae9870bea7d13aea84 Mon Sep 17 00:00:00 2001 From: Midnight Veil Date: Sat, 9 Dec 2023 17:54:22 +1100 Subject: [PATCH] doc: mkYarnPackage/mkYarnModules should use offlineCache to prevent IFD This is not mentioned elsewhere, and can be confusing. --- doc/languages-frameworks/javascript.section.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/languages-frameworks/javascript.section.md b/doc/languages-frameworks/javascript.section.md index 152974b465a5..5d2a6413e104 100644 --- a/doc/languages-frameworks/javascript.section.md +++ b/doc/languages-frameworks/javascript.section.md @@ -354,6 +354,7 @@ mkYarnPackage rec { - The `echo 9` steps comes from this answer: - Exporting the headers in `npm_config_nodedir` comes from this issue: +- `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}