191 Commits
Author SHA1 Message Date
Alex James 1bc6e6c095 nodejs: use sigtool's codesign in test-macos-app-sandbox
test-macos-app-sandbox uses the system-provided codesign binary
(/usr/bin/codesign) to apply entitlements to an app bundle. This fails
in the sandbox as /usr/bin/codesign is not accessible. Patch the test to
instead use the codesign binary from sigtool. The test was updated to
pass the executable path to codesign as sigtool can't handle the bundle
path.
2025-08-30 01:27:52 -05:00
Antoine du Hamel b6aaf4d7ba nodejs: do not skip passing test
The fix was upstreamed, so we can reduce the list of skipped tests.
2025-08-21 00:31:53 +02:00
Wolfgang Walther 90604d95bc Merge branch 'staging-next' into staging 2025-07-24 14:33:09 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Philip TaronandGitHub 77dca5875a treewide: populate arch and platform for more node packages (#422938) 2025-07-15 09:18:57 -07:00
Colin b3daf8c3a5 nodejs: split destCPU into stdenv.$platform.node
this architecture mapping is used broadly in the node ecosystem.
an assortment of tools and hooks, like buildNpmPackage or
pnpm.configHook, will benefit from reusing these values. placing them in
stdenv makes sense because (1) several of these tools don't currently
depend on nodejs, and may even be available where nodejs is not and (2)
`stdenv.{build,host,target}Platform` seems to be less error-prone than
`pkgs*.nodejs.{os,arch}` -- especially for setup hooks where the offsets
are shifted.
2025-07-07 03:07:58 +00:00
Antoine du Hamel cfeaf14c52 nodejs*: skip some flaky tests 2025-06-14 11:07:20 +02:00
alyaeanyx e76c689a3d nodejs: fix dev output 2025-05-18 20:25:46 +02:00
Tom van DijkandMasum Reza 1947acf929 nodejs_20: unbreak on x86_64-darwin 2025-05-12 02:07:32 +05:30
Arne KellerandGitHub 4823eef5f9 nodejs: update update script (#401879) 2025-05-09 14:10:30 +02:00
Antoine du Hamel a949c18fd5 nodejs_24: 24.0.0-rc.3 -> 24.0.0 2025-05-06 16:47:22 +02:00
FliegendeWurst 8e4b415b64 nodejs_24: disable two broken tests
The SQLite test can be re-enabled once we build the RBU extension.
2025-05-03 19:55:45 +02:00
Antoine du Hamel c5f13f512d nodejs: update update script 2025-04-26 00:33:11 +02:00
Ihar Hrachyshka dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Antoine du Hamel f1690c45b6 nodejs_latest: 23.11.0 -> 24.0.0-rc.2 2025-04-17 00:22:57 +02:00
Antoine du Hamel bb11d476f5 nodejs: skip tests that are failing on macOS 15.4 2025-04-08 18:49:21 +02:00
K900 68d28ae1bb nodejs_18: hack to fix build
It should be dropped soon.
2025-04-05 21:58:11 +03:00
Silvan Mosberger e52d633a63 Merge remote-tracking branch 'upstream/staging-next' into staging 2025-04-02 18:30:54 +02:00
Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Audrey Dutcher b759eafff6 nodejs: fix cross compilation for non-emulatable platforms
This was tested x86_64-linux -> x86_64-freebsd. It works by injecting
the tools that would otherwise be run at build time for the same
executables extracted from a native build.

Without this, there are multiple issues:
a) It will fail to start building since there are naming conflicts
   between the "host" (build system) and "normal" (host system) object
   files. This is resolved with a patch from buildroot.
b) It will then still fail to build since it will still try to build the
   "host" objects, with a host compiler, but it will use the
   configuration flags for the "target" OS. This is resolved by
   importing the executables that would otherwise be run on the build
   system from the intermediate stage of a native build, saved in a new
   "dev" output. We also fake the "host" compiler as a tool which simply
   touches its outputs.
c) Finally, there is a clang bug which causes a static assert that
   something is trivially copyable to fire as a false positive. We
   remove this check with a patch from rubyjs.
2025-03-18 23:31:45 -07:00
Emily 1bf298f1b1 nodejs: remove obsolete aligned allocation workaround 2025-01-04 18:58:08 +00:00
github-actions[bot]andGitHub 215e1f12a4 Merge staging-next into staging 2024-12-03 06:05:38 +00:00
FliegendeWurst f634fa26cc nodejs_{20,22,23}: fix flaky test 2024-11-26 17:31:07 +01:00
Guillaume Girol 815ec0c6f2 nodejs: fix build on 32 bit platforms
this test is failing on both armv7 and i686 and is related to year 2038
issue so it probably affects all 32 bit platforms
2024-11-09 12:00:00 +00:00
Antoine du Hamel 5ec3e7b30e nodejs_22: use shared SQLite 2024-10-29 18:23:23 +01:00
Randy Eckenrode 887a9ba50a nodejs: suppress failing test on x86_64-darwin 2024-10-06 09:49:21 -04:00
Antoine du HamelandFabián Heredia Montiel e005e5d99f nodejs: add missing patches and skip some TLS tests on 20.x and 18.x
Co-authored-by: Fabián Heredia Montiel <fabianhjr@protonmail.com>
2024-09-26 00:00:56 +02:00
Antoine du Hamel 59777cc547 nodejs: fix tests for OpenSSL 3.2 2024-09-22 21:26:13 +02:00
EmilyandGitHub 64efdfcc37 nodejs: disable failing network tests (#343541) 2024-09-21 21:01:48 +01:00
Fabián Heredia Montiel b37957f41e nodejs: disable failing network tests
https://hydra.nixos.org/build/273305124/nixlog/1
2024-09-21 11:19:06 -06:00
Maximilian BoschandGitHub efbf70d52c nodejs: fix libv8 object files list (#337360) 2024-09-02 07:53:39 +02:00
Ivan Trubach b3dd92e213 nodejs: fix libv8 object files list 2024-08-26 14:00:40 +03:00
Emily 24536bf02c nodejs: suppress Python warnings on x86_64-darwin 2024-08-26 07:00:03 +01:00
Antoine du Hamel f5846d25a1 nodejs: skip tests failing in sandbox in all platforms
ce685a8422 added list of tests failing on sandbox, but for some reason
only for Darwin. We should skip those tests on all platforms otherwise
OfBorg builds are failing.
2024-08-12 15:41:37 +02:00
Ivan Trubach 31d238110c nodejs: disable failing tests on x86_64-darwin 2024-08-10 10:48:23 +03:00
Ivan Trubach d7f46fbb5c nodejs: fix tests and disable parallel checking 2024-07-28 23:35:43 +03:00
Ivan Trubach 3cf3f6ae23 nodejs: allow building for vfpv2 2024-07-26 11:00:33 +03:00
Ivan Trubach d162d8e50d nodejs: use ninja for build
This change cleans up build inputs and adjusts the build to use ninja.
2024-07-26 11:00:31 +03:00
Karel KočíandIvan Trubach e5906ddfd4 nodejs: fix cross compilation for armv7l
The v8 library supports only limited number of build platforms based on
the host architecture. The rule there is the bitness (the mixing of
32bit and 64bit architectures seems to be in most cases disallowed).
Thus this adds usage of the emulator of the host platform and builds
tools for that.

Co-authored-by: Ivan Trubach <mr.trubach@icloud.com>
2024-07-26 10:59:32 +03:00
github-actions[bot]andGitHub 2567b049bd Merge master into staging-next 2024-07-25 18:00:59 +00:00
Doron BeharandGitHub 2c36071c2d Merge pull request #329662 from bryango/nodejs-finalpackage
nodejs: use .finalPackage for ease of overriding
2024-07-25 16:07:22 +03:00
github-actions[bot]andGitHub 7208220b63 Merge master into staging-next 2024-07-24 18:01:18 +00:00
Bryan Lai ee9a623f89 nodejs: use .finalPackage for ease of overriding
Previously, the nodejs `passthru.pkgs` attribute refers to the package
fixed point derived in the current context, without considering
potential overrides to the main nodejs package.

This is fixed here with the `.finalPackage` attribute, which refers to
the final package fixed point, after potential overrides.

For example, previously, after overriding nodejs with `nodejs.override`,
`nodejs.pkgs` would still refer to the original package, instead of the
overridden one. After this fix, `nodejs.pkgs` would be correctly based
on the overridden `nodejs` package.
2024-07-24 22:09:15 +08:00
Ivan Trubach 90fbf71333 treewide: remove maintainer goibhniu
Inactive in Nixpkgs since 2018 (and a single PR in 2022).
https://github.com/NixOS/nixpkgs/issues?q=author%3Acillianderoiste
2024-07-24 13:38:22 +03:00
Martin Weinelt 176a56c40f Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
- pkgs/applications/misc/blender/default.nix
- pkgs/development/web/nodejs/nodejs.nix
2024-07-11 01:06:28 +02:00
Emily d25d9b6a2d nodejs: disable JS test suite on Darwin
This was recently enabled in #313982. It seems to be much too flaky
on Darwin currently, especially x86; see:

* <https://hydra.nixos.org/build/264860513/nixlog/8>
* <https://hydra.nixos.org/build/264956149/nixlog/3>
* <https://hydra.nixos.org/build/265094929/nixlog/3>
* <https://hydra.nixos.org/build/264901296/nixlog/3>

Disable these tests on macOS for now as the broken Node.js package
is holding up a lot of builds.

Fixes: b26563aae2
2024-07-09 14:27:05 +01:00
Ivan Trubach 97240ea0ac nodejs: add testVersion to passthru.tests 2024-07-06 18:32:37 +03:00
Ivan Trubach ce685a8422 nodejs: fix sandboxed build on darwin 2024-07-06 18:32:36 +03:00
Pol DellaieraandGitHub 3dd6684936 Merge pull request #322799 from tie/nodejs-fix-impure-configure
nodejs: fix impure configure phase
2024-07-05 11:33:05 +02:00
github-actions[bot]andGitHub 9cede82051 Merge master into staging-next 2024-07-04 12:01:10 +00:00