diff --git a/pkgs/applications/graphics/drawio/default.nix b/pkgs/applications/graphics/drawio/default.nix index 8925a2f2d576..f9ad7182c1ca 100644 --- a/pkgs/applications/graphics/drawio/default.nix +++ b/pkgs/applications/graphics/drawio/default.nix @@ -57,6 +57,9 @@ stdenv.mkDerivation rec { export HOME="$TMPDIR" yarn config --offline set yarn-offline-mirror "$offlineCache" fixup-yarn-lock yarn.lock + # Ensure that the node_modules folder is created by yarn install. + # See https://github.com/yarnpkg/yarn/issues/5500#issuecomment-1221456246 + echo "nodeLinker: node-modules" > .yarnrc.yml yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive patchShebangs node_modules/