From 79900f941d9a81b93e6b0002abad013dcec0ba10 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 1 Jun 2025 23:05:54 +0200 Subject: [PATCH] update to nodejs 22 Version 18 is no longer supported. Version 22 is the current LTS release. --- dev/topics/rtl.sh | 2 +- pkgs/clightning-rest/default.nix | 8 ++++---- pkgs/rtl/default.nix | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dev/topics/rtl.sh b/dev/topics/rtl.sh index 933504a..f9d4202 100644 --- a/dev/topics/rtl.sh +++ b/dev/topics/rtl.sh @@ -28,7 +28,7 @@ runuser -u "$(logname)" -- xdg-open "http://$ip:3000" rtl_src=~/s/RTL 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 env --chdir "$rtl_src" nix-bitcoin-firejail --whitelist="$rtl_src" --whitelist=/tmp/nix-bitcoin-dev/nodejs PATH=/tmp/nix-bitcoin-dev/nodejs/bin:"$PATH" diff --git a/pkgs/clightning-rest/default.nix b/pkgs/clightning-rest/default.nix index 488627b..8d9256b 100644 --- a/pkgs/clightning-rest/default.nix +++ b/pkgs/clightning-rest/default.nix @@ -1,7 +1,7 @@ { lib , stdenvNoCC -, nodejs-18_x -, nodejs-slim-18_x +, nodejs_22 +, nodejs-slim_22 , fetchNodeModules , fetchurl , makeWrapper @@ -17,8 +17,8 @@ let self = stdenvNoCC.mkDerivation { }; passthru = { - nodejs = nodejs-18_x; - nodejsRuntime = nodejs-slim-18_x; + nodejs = nodejs_22; + nodejsRuntime = nodejs-slim_22; nodeModules = fetchNodeModules { inherit (self) src nodejs; diff --git a/pkgs/rtl/default.nix b/pkgs/rtl/default.nix index c706974..e25d36e 100644 --- a/pkgs/rtl/default.nix +++ b/pkgs/rtl/default.nix @@ -1,7 +1,7 @@ { lib , stdenvNoCC -, nodejs-18_x -, nodejs-slim-18_x +, nodejs_22 +, nodejs-slim_22 , fetchNodeModules , fetchpatch , fetchurl @@ -17,8 +17,8 @@ let self = stdenvNoCC.mkDerivation { }; passthru = { - nodejs = nodejs-18_x; - nodejsRuntime = nodejs-slim-18_x; + nodejs = nodejs_22; + nodejsRuntime = nodejs-slim_22; nodeModules = fetchNodeModules { inherit (self) src nodejs;