From 6fbc9b6f93ea492cd5a9ea12fc26c51b5a03decc Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 24 Sep 2022 21:15:34 +0200 Subject: [PATCH] polaris-web: fix breakage due to nodejs v16->v18 upgrade This really should be fixed upstream, but this will have to suffice in the meanwhile. --- pkgs/servers/polaris/web.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/polaris/web.nix b/pkgs/servers/polaris/web.nix index b2d6d6de9fad..4ef4f90ead6f 100644 --- a/pkgs/servers/polaris/web.nix +++ b/pkgs/servers/polaris/web.nix @@ -51,6 +51,9 @@ stdenv.mkDerivation rec { export PATH="${nodeDependencies}/bin:${nodejs}/bin:$PATH" + # https://github.com/parcel-bundler/parcel/issues/8005 + export NODE_OPTIONS=--no-experimental-fetch + ln -s ${nodeDependencies}/lib/node_modules . npm run production