use nodejs_22 in nix files
This commit is contained in:
parent
3641ce9277
commit
8fb1408bb4
|
@ -4,7 +4,7 @@
|
||||||
nix-gitignore,
|
nix-gitignore,
|
||||||
|
|
||||||
yarn-berry,
|
yarn-berry,
|
||||||
nodejs,
|
nodejs_22,
|
||||||
cacert,
|
cacert,
|
||||||
}: stdenv.mkDerivation (final: let
|
}: stdenv.mkDerivation (final: let
|
||||||
nodeModules = stdenv.mkDerivation {
|
nodeModules = stdenv.mkDerivation {
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
src = final.src;
|
src = final.src;
|
||||||
|
|
||||||
nativeBuildInputs = [ nodejs yarn-berry cacert ];
|
nativeBuildInputs = [ nodejs_22 yarn-berry cacert ];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
mkdir garbage-tooling
|
mkdir garbage-tooling
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
HOME=$(pwd)/garbage-tooling yarn install || true
|
HOME=$(pwd)/garbage-tooling yarn install || true
|
||||||
|
|
||||||
mkdir -p node_modules/node/bin
|
mkdir -p node_modules/node/bin
|
||||||
ln -s ${nodejs}/bin/node node_modules/node/bin/node
|
ln -s ${nodejs_22}/bin/node node_modules/node/bin/node
|
||||||
|
|
||||||
HOME=$(pwd)/garbage-tooling yarn install
|
HOME=$(pwd)/garbage-tooling yarn install
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
set -x
|
set -x
|
||||||
yarn install || true
|
yarn install || true
|
||||||
mkdir -p node_modules/node/bin
|
mkdir -p node_modules/node/bin
|
||||||
ln -sf ${pkgs.nodejs}/bin/node node_modules/node/bin/node
|
ln -sf ${pkgs.nodejs_22}/bin/node node_modules/node/bin/node
|
||||||
yarn install
|
yarn install
|
||||||
'') ];
|
'') ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue