update to nodejs 22
Version 18 is no longer supported. Version 22 is the current LTS release.
This commit is contained in:
parent
9808a5e5d4
commit
79900f941d
3 changed files with 9 additions and 9 deletions
|
|
@ -28,7 +28,7 @@ runuser -u "$(logname)" -- xdg-open "http://$ip:3000"
|
||||||
rtl_src=~/s/RTL
|
rtl_src=~/s/RTL
|
||||||
git clone https://github.com/Ride-The-Lightning/RTL "$rtl_src"
|
git clone https://github.com/Ride-The-Lightning/RTL "$rtl_src"
|
||||||
|
|
||||||
nix build -o /tmp/nix-bitcoin-dev/nodejs --inputs-from . nixpkgs#nodejs-18_x
|
nix build -o /tmp/nix-bitcoin-dev/nodejs --inputs-from . nixpkgs#nodejs_22
|
||||||
# Start a shell in a sandbox
|
# Start a shell in a sandbox
|
||||||
env --chdir "$rtl_src" nix-bitcoin-firejail --whitelist="$rtl_src" --whitelist=/tmp/nix-bitcoin-dev/nodejs
|
env --chdir "$rtl_src" nix-bitcoin-firejail --whitelist="$rtl_src" --whitelist=/tmp/nix-bitcoin-dev/nodejs
|
||||||
PATH=/tmp/nix-bitcoin-dev/nodejs/bin:"$PATH"
|
PATH=/tmp/nix-bitcoin-dev/nodejs/bin:"$PATH"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, nodejs-18_x
|
, nodejs_22
|
||||||
, nodejs-slim-18_x
|
, nodejs-slim_22
|
||||||
, fetchNodeModules
|
, fetchNodeModules
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
|
@ -17,8 +17,8 @@ let self = stdenvNoCC.mkDerivation {
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
nodejs = nodejs-18_x;
|
nodejs = nodejs_22;
|
||||||
nodejsRuntime = nodejs-slim-18_x;
|
nodejsRuntime = nodejs-slim_22;
|
||||||
|
|
||||||
nodeModules = fetchNodeModules {
|
nodeModules = fetchNodeModules {
|
||||||
inherit (self) src nodejs;
|
inherit (self) src nodejs;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, nodejs-18_x
|
, nodejs_22
|
||||||
, nodejs-slim-18_x
|
, nodejs-slim_22
|
||||||
, fetchNodeModules
|
, fetchNodeModules
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
|
@ -17,8 +17,8 @@ let self = stdenvNoCC.mkDerivation {
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
nodejs = nodejs-18_x;
|
nodejs = nodejs_22;
|
||||||
nodejsRuntime = nodejs-slim-18_x;
|
nodejsRuntime = nodejs-slim_22;
|
||||||
|
|
||||||
nodeModules = fetchNodeModules {
|
nodeModules = fetchNodeModules {
|
||||||
inherit (self) src nodejs;
|
inherit (self) src nodejs;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue