From b30db924b81d2bfe1b4e67c616583d4cbab3de1a Mon Sep 17 00:00:00 2001 From: DarkOnion0 Date: Tue, 27 May 2025 10:40:57 +0200 Subject: [PATCH] drawio: ensure node_modules is created --- pkgs/applications/graphics/drawio/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/graphics/drawio/default.nix b/pkgs/applications/graphics/drawio/default.nix index d237920dabb8..5f697cf7ca62 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/