Skip to content

Commit

Permalink
[LW-9778, DDW-1228] Add -N to the RTS opts of both node and wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrus committed Mar 27, 2024
1 parent bc88c8b commit 2bbf573
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nix/internal/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ rec {
# FIXME: this has to be done better…
temporaryNodeModulesPatches = ''
sed -r "s/'127\.0\.0\.1'/undefined/g" -i node_modules/cardano-launcher/dist/src/cardanoNode.js
# Has to be idempotent:
if ! grep -qF "'-N'" node_modules/cardano-launcher/dist/src/cardanoWallet.js ; then
sed -r "s/'serve'/\0, '+RTS', '-N', '-RTS'/g" -i node_modules/cardano-launcher/dist/src/cardanoWallet.js
fi
# Has to be idempotent:
if ! grep -qF "'-N'" node_modules/cardano-launcher/dist/src/cardanoNode.js ; then
sed -r "s/config.rtsOpts/(\0 || []).concat(['-N'])/g" -i node_modules/cardano-launcher/dist/src/cardanoNode.js
fi
'';

electronVersion = originalPackageJson.dependencies.electron;
Expand Down

0 comments on commit 2bbf573

Please sign in to comment.