summaryrefslogtreecommitdiff
path: root/gnu/packages/node.scm
AgeCommit message (Collapse)Author
2026-03-20gnu: Reference the inherited ‘arguments’ value.Ludovic Courtès
This commit was made by running this command: sed -e's/substitute-keyword-arguments (package-arguments [a-zA-Z0-9-]\+)/substitute-keyword-arguments arguments/g' -i gnu/packages/*.scm … and then: 1. reverting changes from ‘gnu/packages/rust.scm’ and ‘gnu/packages/java.scm’ since they would incur derivation changes and/or breakage; 2. reverting the change for ‘gcc-final’ in ‘gnu/packages/commencement.scm’; 3. reverting the change for ‘onnx-optimizer’, ‘openquest’, and ‘certbot’, which use ‘substitute-keyword-arguments’ for arguments that are not inherited (and thus ‘arguments’ would be unbound); 4. reverting the change for ‘insight-toolkit-legacy’ and ‘wine64-staging’ which make bogus assumptions about inherited arguments. Change-Id: I122a7cf517b6b63cae38944b5d33ade4b1f5a89c
2026-02-20gnu: Use (target-32bit?) to test for 32bit targets.Dariqq
* gnu/packages/*.scm: Replace usage of target-64bit? when actually testing for 32bit targets. * guix/utils.scm (target-hurd32?). Same. Change-Id: If3ed2b82a1229b72b07fafc694eedc14080e5a04 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #5710
2025-07-18gnu: node-lts: Fix build.Jelle Licht
* gnu/packages/node.scm (node-lts)[inputs]: Replace icu4c with icu4c-76. [native-inputs]: Replace icu4c with icu4c-76. Change-Id: Iea508b914b3c576900ae3cdcc85ae98a4550142b Signed-off-by: Andreas Enge <andreas@enge.fr>
2025-07-18gnu: node-bootstrap: Fix build.Jelle Licht
* gnu/packages/node.scm (node-bootstrap)[inputs]: Remove icu4c; replace c-ares with c-ares-for-node-bootstrap. [native-inputs]: Remove icu4c; replace c-ares with c-ares-for-node-bootstrap. Add gcc-11. [arguments]<#:configure-flags>: Disable intl support. <#:phases>: No longer add references to icu4c. [source]<snippet>: Adjust accordingly. Change-Id: I29dd70e4660db6f485a94872dedfb52283c5a72a Signed-off-by: Andreas Enge <andreas@enge.fr>
2025-05-18gnu: Remove use-module (gnu packages node-xyz) from (gnu packages node).Daniel Khodabakhsh
This change removes the use-module (gnu packages node-xyz) import from (gnu packages node). node-xyz is not actually used in node and seems to have been accidentally added in f540ee5ef845946228c0e2e4cffadccd36069922. Keeping it in can lead to circular dependency issues. Change-Id: I292323510b918a5e5c154a06f06cc608997557d6 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-04-13gnu: node-lts: Skip test-debugger-heap-profiler on 32bit systems.Christopher Baines
As this seems to fail, and is marked as flaky by upstream. * gnu/packages/node.scm (node-lts):[arguments]: Skip test-debugger-heap-profiler on 32bit systems. Change-Id: Idb89e6d28f28fd240cd27d0bc710a35bf05f57d4
2025-04-13gnu: node-lts: Update to 22.14.0 [security fixes].Jelle Licht
* gnu/packages/node.scm (node-lts): Update to 22.14.0. [source]<snippet>: Remove redundant workaround for unbundling. [#:phases]<patch-problematic-tests>: New phase. Patch tests that fail when trying to connect to the wrong address when using IPv6. Change-Id: Icd93e2954d84824ff8b74ff58a24666c3de27e76
2025-04-13build-system/node: New API for modifying json.Daniel Khodabakhsh
Introduce (modify-json), (delete-fields), and (replace-fields) to node-build-system This change introduces helper procedures (modify-json) which takes in lambdas which modify the target json #:file which defaults to package.json This change also includes (delete-fields) and (replace-fields) to help deleting and replacing the value of fields in a package.json file. * guix/build/node-build-system.scm (modify-json, modify-json-fields, delete-fields, replace-fields, delete-dev-dependencies): New API exported procedures. (with-atomic-json-file-replacement, delete-dependencies): Change procedures to adapt to the new API. * gnu/packages/node.scm (node-ms-bootstrap, node-binary-search-bootstrap, node-debug-boostrap, node-llparse-builder-bootstrap, node-llparse-frontend-boostrap, node-llparse-bootstrap): Use new API procedures. * gnu/packages/node-xyz.scm (node-acorn, node-addon-api, node-buffer-crc32, node-crx3, node-debug, node-file-uri-to-path, node-ieee754, node-inherits, node-irc, node-irc-colors, node-minimist, node-ms, node-nan, node-normalize-path, node-once, node-path-key, node-pbf, node-protocol-buffers-schema, node-readable-stream, node-resolve-protobuf-schema, node-safe-buffer, node-safe-stable-stringify, node-semver, node-serialport, node-serialport-bindings, node-serialport-stream, node-sqlite3, node-string-decoder, node-tiddlywiki, node-wrappy, node-yazl): Use new API procedures. Change-Id: I957f7ca814078d2136d5261985174820235f1369 Signed-off-by: Jelle Licht <jlicht@fsfe.org>
2025-03-13gnu: node-bootstrap: Remove powerpc-linux from supported-systems.Efraim Flashner
* gnu/packages/node.scm (node-bootstrap)[supported-systems]: Remove powerpc-linux from the supported systems. (node-lts)[supported-systems]: Adjust accordingly. Change-Id: I66408d52cfe950d1ca4fb6f3303c82a759b050ec
2025-03-07gnu: node-bootstrap: Remove riscv64-linux from supported-systems.Efraim Flashner
* gnu/packages/node.scm (node-bootstrap)[supported-systems]: New field. (node-lts)[supported-system]: Restore the default. Change-Id: Ia2eb1b18298e6bdb088b3d9d8fa4c395b690253f
2025-03-02gnu: node-bootstrap: Fix build.Liliana Marie Prikler
* gnu/packages/node.scm (node-bootstrap)[snippet]: Also adjust time format in “test/parallel/test-intl.js”.
2025-03-02gnu: Make icu4c 73.1 the default.Liliana Marie Prikler
* gnu/packages/icu4c.scm (icu4c): Update to 73.1. [patches]: Adjust accordingly. (icu4c-73): Delete variable. (icu4c-71): New variable, containing the old icu4c. * gnu/packages/librewolf.scm (librewolf)[inputs]: Adjust accordingly. * gnu/packages/node.scm (node-lts): Likewise. * gnu/packages/tor-browsers.scm (make-torbrowser): Likewise. * gnu/packages/gnuzilla.scm (icecat-minimal, icedove-minimal): Likewise.
2025-02-11gnu: node-lts: Update to 22.12.0.Jelle Licht
* gnu/packages/node.scm (node-lts): Update to 22.12.0. [#:phases]<delete-problematic-tests>: Delete tests that fail due to the build container. Delete tests that require a DNS resolver. [inputs]: Replace c-ares by c-ares-for-node-lts. Replace icu4c by icu4c-73. [native-inputs]: Replace c-ares by c-ares-for-node-lts. Replace icu4c by icu4c-73. Change-Id: I8cbc790bd82c55b48f8917e6405b37569b29dc1c
2025-02-11gnu: llhttp-bootstrap: Update to 9.2.1.Jelle Licht
* gnu/packages/patches/llhttp-ponyfill-object-fromentries.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register patch. * gnu/packages/node.scm (llhttp-bootstrap): Update to 9.2.1. [source]: Use patch.
2024-12-18gnu: Add node alias for node-lts.Jelle Licht
The node alias should henceforth refer to versions of Node.js that are at least as recent as node-lts. * gnu/packages/node.scm (node): New variable. Change-Id: I1f19914715dda7da6bb45917e32b53227b480929
2024-12-18gnu: node: Rename variable to node-bootstrap and hide package.Jelle Licht
The package formerly known as node has security issues, so should only be used to bootstrap more recent and secure versions of node. * gnu/packages/node.scm (node): Rename to... (node-bootstrap): ... this, and make it a hidden package. Change-Id: I536a8f55faa14f8221915467c2981053f4c4d70e
2024-12-18gnu: node-lts: Update to 20.18.1 [security fixes].Jelle Licht
* gnu/packages/node.scm (node-lts): Update to 20.18.1. [origin]: Delete bundled brotli, ngtcp2 and uv. [:configure-flags]: Add shared-nghtcp2 flag. Add shared-nghttp3 flag. [#:phases]<delete-problematic-tests>: Remove tests that fail due to linking to unbundled libuv. Delete tests that depend on 64-bit time_t for 32-bit builds. [native-inputs]: Replace libuv by libuv-for-node-lts. [inputs]: Replace libuv by libuv-for-node-lts. Add ngtpc2, nghttp3. Change-Id: I932e64f212283b34f0affad65c3d9f92fdea3d79
2024-12-18gnu: llhttp-bootstrap: Update to 8.1.2.Jelle Licht
* gnu/packages/node.scm (llhttp-bootstrap): Update to 8.1.2. Change-Id: I4eff26889b2645c031fc9ea896657468d5752953
2024-12-18gnu: node-lts: Replace customized c-ares-for-node by c-ares.Jelle Licht
* gnu/packages/node.scm (node-lts) [native-inputs]: Replace c-ares-for-node by c-ares. [inputs]: Ditto. Change-Id: Ibef027d55c14e302d406d6478fed474f67c0d508
2024-12-18gnu: node: Replace customized nghttp2-for-node by nghttp2.Jelle Licht
* gnu/packages/node.scm (node) [native-inputs]: Replace nghttp2-for-node by nghttp2. [inputs]: Ditto. [arguments]<#:phases>: Adjust accordingly by skipping failing tests. Change-Id: Ia3d63ea1c428c1353d6ec6fda394ccb016eb6603
2024-08-31gnu: node: Fix build with zlib 1.3.Efraim Flashner
* gnu/packages/node.scm (node)[source]: Adjust snippet to adjust a test to accept shorter version strings. Change-Id: If8384497035e44f4876357877941cbf175acf879
2023-12-22gnu: node-lts: Update to 18.19.0.TakeV
* gnu/packages/node.scm (node-lts): Update to 18.19.0. Change-Id: Ide542157571774da6d70fc114ec095f645a79b8b Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-11-05gnu: node-lts: Update to 18.18.2.Jelle Licht
* gnu/packages/node.scm (node-lts): Update to 18.18.2. [arguments]<phases>: Add 'install-node-gyp-wrapper phase. Change-Id: I6b17de33313505558a8fa9560126adef486fd0e3
2023-08-31gnu: node-lts: Update to 18.17.1.Jelle Licht
* gnu/packages/node.scm (node-lts): Update to 18.17.1.
2023-08-31gnu: llhttp-bootstrap: Update to 6.0.11.Jelle Licht
* gnu/packages/node.scm (llhttp-bootstrap): Update to 6.0.11.
2023-07-16gnu: libnode: Delete extra phase.Ricardo Wurmus
This is a follow-up to commit 5dc2a88f99e2e448f7e9ca842a4a0d072a8f8f20. * gnu/packages/node.scm (libnode)[arguments]: Remove phase 'ignore-number-of-hardlinks.
2023-07-15gnu: node-lts: Install files irrespective of number of hardlinks.Ricardo Wurmus
* gnu/packages/node.scm (node-lts)[arguments]: Add build phase 'ignore-number-of-hardlinks.
2023-07-15gnu: node-lts: Simplify snippet.Ricardo Wurmus
* gnu/packages/node.scm (node-lts)[source]: Remove quasiquote, trailing #T, and IF with explicit booleans.
2023-05-06gnu: libnode: Use node-lts as base.Hilton Chain
* gnu/packages/node.scm (libnode): Use node-lts as base. * gnu/packages/cran.scm (r-v8)[arguments]<#:phases>: Adjusted accordingly. Signed-off-by: Jelle Licht <jlicht@fsfe.org>
2023-05-06gnu: node-lts: Update to 18.16.0.Hilton Chain
* gnu/packages/node.scm (node-lts): Update to 18.16.0. [snippet]: Keep file deps/openssl/nodejs-openssl.cnf. [arguments]<#:configure-flags>: Enable v8 snapshot compression. <#:phases>: Adjust problematic tests to delete accordingly. Patch additional file with hardcoded references to /bin/sh. [native-inputs,inputs]: Replace openssl-1.1 with openssl. Replace libuv-for-node with libuv. Replace nghttp2-for-node with nghttp2. Signed-off-by: Jelle Licht <jlicht@fsfe.org> Co-authored-by: Jelle Licht <jlicht@fsfe.org>
2023-05-06gnu: llhttp-bootstrap: Update to 6.0.10.Hilton Chain
* gnu/packages/node.scm (llhttp-bootstrap): Update to 6.0.10. * gnu/packages/patches/llhttp-bootstrap-CVE-2020-8287.patch: Remove file. * gnu/local.mk: Remove it. Signed-off-by: Jelle Licht <jlicht@fsfe.org>
2023-04-14Merge branch 'master' into core-updates.Maxim Cournoyer
Conflicts: gnu/local.mk gnu/packages/build-tools.scm gnu/packages/certs.scm gnu/packages/check.scm gnu/packages/compression.scm gnu/packages/cups.scm gnu/packages/fontutils.scm gnu/packages/gnuzilla.scm gnu/packages/guile.scm gnu/packages/ibus.scm gnu/packages/image-processing.scm gnu/packages/linux.scm gnu/packages/music.scm gnu/packages/nss.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/qt.scm gnu/packages/ruby.scm gnu/packages/shells.scm gnu/packages/tex.scm gnu/packages/video.scm gnu/packages/vulkan.scm gnu/packages/web.scm gnu/packages/webkit.scm gnu/packages/wm.scm
2023-03-22gnu: node-lts: Remove dependency on python-wrapper.Jelle Licht
This also reduces the closure size of node-lts from 255 MiB to 172 MiB (on x86_64-linux). * gnu/packages/node.scm (node-lts)[inputs]: Remove PYTHON-WRAPPER. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2023-01-30Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner
Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm
2022-12-30gnu: node: Add case for cross-building to riscv64-linux.Efraim Flashner
* gnu/packages/node.scm (node)[arguments]: Adjust custom 'configure phase to specify the correct architecture when cross-compiling to riscv64-linux.
2022-08-30gnu: node@10: Build with 'libuv-for-node'.Marius Bakke
* gnu/packages/node.scm (node)[inputs, native-inputs]: Change from LIBUV to LIBUV-FOR-NODE.
2022-08-30Merge branch 'staging' into core-updatesMarius Bakke
2022-08-30gnu: Introduce versioned 'openssl-1.1' variable.Marius Bakke
...and use it in packages that do not yet support 3.0. * gnu/packages/tls.scm (openssl): Rename to ... (openssl-1.1): ... this. (openssl/fixed): Inherit from OPENSSL-1.1. (openssl-3.0): Likewise. (openssl): Turn into alias for OPENSSL-1.1. * gnu/packages/ruby.scm (ruby-2.6)[inputs]: Change from OPENSSL to OPENSSL-1.1. (ruby-3.0)[inputs]: Change "openssl" input to OPENSSL. (ruby-3.1): Inherit from RUBY-3.0. * gnu/packages/python.scm (python-2.7)[inputs]: Change from OPENSSL to OPENSSL-1.1. (python-3.9)[inputs]: Replace "openssl" with OPENSSL. * gnu/packages/python-crypto.scm (python-cryptography)[inputs]: Change from OPENSSL to OPENSSL-1.1. * gnu/packages/databases.scm (mariadb)[inputs]: Likewise. * gnu/packages/node.scm (node)[native-inputs, inputs]: Likewise. (node-lts)[native-inputs]: Likewise.
2022-08-11Merge branch 'staging' into core-updatesMarius Bakke
2022-08-02gnu: node-lts: Build with icu4c-71.Efraim Flashner
* gnu/packages/node.scm (node-lts)[inputs]: Replace icu4c-70 with icu4c-71. [native-inputs]: Same.
2022-07-16gnu: node: Build with nghttp2@1.44.0.Marius Bakke
* gnu/packages/web.scm (nghttp2-for-node): New variable. * gnu/packages/node.scm (node, node-lts)[native-inputs, inputs]: Change from NGHTTP2 to NGHTTP2-FOR-NODE.
2022-06-06gnu: node: Fix cross-compilation.Jelle Licht
* gnu/packages/node.scm (node)[phases]{configure}: Unwind the stack before invoking the exception handler. {patch-hardcoded-program-references}: Use search-input-file where appropriate.
2022-06-06gnu: node-lts: Update to 14.19.3.Jelle Licht
* gnu/packages/node.scm (node-lts): Update to 14.19.3. [arguments]: Disable test that requires networking. [native-inputs]: Replace icu4c-67 with icu4c-70. [inputs]: Replace icu4c-67 with icu4c-70.
2022-01-13gnu: node-lts: Update to 14.18.3 [security fixes].Jelle Licht
* gnu/packages/node.scm (node-lts): Update to 14.18.3. Includes fixes for CVE-2021-44531, CVE-2021-44532, CVE-2021-44533, and CVE-2022-21824.
2022-01-11gnu: node: Simplify inputs.Marius Bakke
* gnu/packages/node.scm (node)[native-inputs]: Remove labels. [source]: Remove trailing #t.
2022-01-11gnu: node: Disable flaky test.Marius Bakke
* gnu/packages/node.scm (node, node-lts)[arguments]: Delete flaky test.
2022-01-09gnu: node-llparse-bootstrap: Use 'delete-dependencies'.Philip McGrath
gnu/packages/node.scm (node-llparse-bootstrap)[arguments]: Use 'delete-dependencies'. Stop deleting the 'configure' phase. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09gnu: node-llparse-frontend-bootstrap: Use 'delete-dependencies'.Philip McGrath
gnu/packages/node.scm (node-llparse-frontend-bootstrap)[arguments]: Use 'delete-dependencies'. Stop deleting the 'configure' phase. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09gnu: node-llparse-builder-bootstrap: Use 'delete-dependencies'.Philip McGrath
gnu/packages/node.scm (node-llparse-builder-bootstrap)[arguments]: Use 'delete-dependencies'. Stop deleting the 'configure' phase. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09gnu: node-debug-bootstrap: Use 'delete-dependencies'.Philip McGrath
gnu/packages/node.scm (node-debug-bootstrap)[arguments]: Use 'delete-dependencies'. Stop deleting the 'configure' phase. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>