diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-05-31 09:46:12 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-05-31 10:15:10 +0200 |
commit | 1e708950b0b9bd0f7d3f773b2533aae94222c806 (patch) | |
tree | f72665f68ee0c02f82257376c53afd8effa6f76b /pkgs/servers/openvscode-server/default.nix | |
parent | 94116367482eeec4bd2c3a412a95a3a19dc7b040 (diff) |
openvscode-server: revert #232887
switch back to NodeJS 16 since microsoft/vscode does not support NodeJS 18 yet
Diffstat (limited to 'pkgs/servers/openvscode-server/default.nix')
-rw-r--r-- | pkgs/servers/openvscode-server/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/servers/openvscode-server/default.nix b/pkgs/servers/openvscode-server/default.nix index e2b596a067166..a1c7bcb755534 100644 --- a/pkgs/servers/openvscode-server/default.nix +++ b/pkgs/servers/openvscode-server/default.nix @@ -107,6 +107,9 @@ in stdenv.mkDerivation rec { # set offline mirror to yarn cache we created in previous steps yarn --offline config set yarn-offline-mirror "${yarnCache}" + + # set nodedir, so we can build binaries later + npm config set nodedir "${nodejs}" ''; buildPhase = '' @@ -143,7 +146,7 @@ in stdenv.mkDerivation rec { # rebuild binaries, we use npm here, as yarn does not provide an alternative # that would not attempt to try to reinstall everything and break our # patching attempts - npm --prefix ./remote rebuild --build-from-source --nodedir ${nodejs} + npm --prefix ./remote rebuild --build-from-source # run postinstall scripts after patching find . -path "*node_modules" -prune -o \ |