mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-30 03:32:05 +03:00
rtl, clightning-rest: update to nodejs 18
16 is no longer supported by NixOS 23.05. 18 is the latest LTS version.
This commit is contained in:
parent
03fb70efa4
commit
bd77b89fea
@ -30,7 +30,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-16_x
|
nix build -o /tmp/nix-bitcoin-dev/nodejs --inputs-from . nixpkgs#nodejs-18_x
|
||||||
# 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-16_x
|
, nodejs-18_x
|
||||||
, nodejs-slim-16_x
|
, nodejs-slim-18_x
|
||||||
, fetchNodeModules
|
, fetchNodeModules
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
@ -17,8 +17,8 @@ let self = stdenvNoCC.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
nodejs = nodejs-16_x;
|
nodejs = nodejs-18_x;
|
||||||
nodejsRuntime = nodejs-slim-16_x;
|
nodejsRuntime = nodejs-slim-18_x;
|
||||||
|
|
||||||
nodeModules = fetchNodeModules {
|
nodeModules = fetchNodeModules {
|
||||||
inherit (self) src nodejs;
|
inherit (self) src nodejs;
|
||||||
|
@ -41,8 +41,12 @@ let self = {
|
|||||||
RestrictAddressFamilies = self.defaultHardening.RestrictAddressFamilies + " AF_NETLINK";
|
RestrictAddressFamilies = self.defaultHardening.RestrictAddressFamilies + " AF_NETLINK";
|
||||||
};
|
};
|
||||||
|
|
||||||
# nodejs applications require memory write execute for JIT compilation
|
nodejs = {
|
||||||
nodejs = { MemoryDenyWriteExecute = false; };
|
# Required for JIT compilation
|
||||||
|
MemoryDenyWriteExecute = false;
|
||||||
|
# Required by nodejs >= 18
|
||||||
|
SystemCallFilter = self.defaultHardening.SystemCallFilter ++ [ "@pkey" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Allow takes precedence over Deny.
|
# Allow takes precedence over Deny.
|
||||||
allowLocalIPAddresses = {
|
allowLocalIPAddresses = {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, nodejs-16_x
|
, nodejs-18_x
|
||||||
, nodejs-slim-16_x
|
, nodejs-slim-18_x
|
||||||
, fetchNodeModules
|
, fetchNodeModules
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, fetchurl
|
, fetchurl
|
||||||
@ -18,8 +18,8 @@ let self = stdenvNoCC.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
nodejs = nodejs-16_x;
|
nodejs = nodejs-18_x;
|
||||||
nodejsRuntime = nodejs-slim-16_x;
|
nodejsRuntime = nodejs-slim-18_x;
|
||||||
|
|
||||||
nodeModules = fetchNodeModules {
|
nodeModules = fetchNodeModules {
|
||||||
inherit (self) src nodejs;
|
inherit (self) src nodejs;
|
||||||
|
Loading…
Reference in New Issue
Block a user