Nixpkgs version
Steps to reproduce
- Be on an
aarch64-darwin machine.
- Checkout Nixpkgs, commit 8913c16 for instance.
- Run
nix-build -A vscode-extensions.rust-lang.rust-analyzer.
Can Hydra reproduce this build failure?
I don't know; I keep getting 500 Internal Server Error when I try to enter the package name into the https://hydra.nixos.org/ search bar.
Link to Hydra build job
No response
Relevant log output
npm error code 1
npm error path /nix/var/nix/builds/nix-build-rust-analyzer-0.3.2593.drv-1427-3664896792/code/node_modules/keytar
npm error command failed
npm error command sh -c prebuild-install || npm run build
npm error > keytar@7.9.0 build
npm error > node-gyp rebuild
npm error
npm error make: Entering directory '/nix/var/nix/builds/nix-build-rust-analyzer-0.3.2593.drv-1427-3664896792/code/node_modules/keytar/build'
npm error CXX(target) Release/obj.target/keytar/src/async.o
npm error make: Leaving directory '/nix/var/nix/builds/nix-build-rust-analyzer-0.3.2593.drv-1427-3664896792/code/node_modules/keytar/build'
npm error prebuild-install warn install EACCES: permission denied, access '/nix/store/cvds1v4xbylkf7a8j23phkjlq411w1mb-rust-analyzer-0.3.2593-npm-deps'
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.2.0
npm error gyp info using node@22.19.0 | darwin | arm64
npm error gyp info find Python using Python version 3.13.7 found at "/nix/store/xjpv7j44jn7mifw8r69p7shrsh1aqmnf-python3-3.13.7/bin/python3"
npm error gyp WARN read config.gypi ENOENT: no such file or directory, open '/nix/store/ck8mkvjga2m0b1lqj675g9xf3z19bian-nodejs-22.19.0-source/include/node/config.gypi'
npm error gyp info spawn /nix/store/xjpv7j44jn7mifw8r69p7shrsh1aqmnf-python3-3.13.7/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/nix/store/7hnbd3z2flnqh17fh3sbk0srpn6zvzck-nodejs-22.19.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/nix/var/nix/builds/nix-build-rust-analyzer-0.3.2593.drv-1427-3664896792/code/node_modules/keytar/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/nix/store/7hnbd3z2flnqh17fh3sbk0srpn6zvzck-nodejs-22.19.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/nix/store/ck8mkvjga2m0b1lqj675g9xf3z19bian-nodejs-22.19.0-source/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/nix/store/ck8mkvjga2m0b1lqj675g9xf3z19bian-nodejs-22.19.0-source',
npm error gyp info spawn args '-Dnode_gyp_dir=/nix/store/7hnbd3z2flnqh17fh3sbk0srpn6zvzck-nodejs-22.19.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/nix/store/ck8mkvjga2m0b1lqj675g9xf3z19bian-nodejs-22.19.0-source/$(Configuration)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/nix/var/nix/builds/nix-build-rust-analyzer-0.3.2593.drv-1427-3664896792/code/node_modules/keytar',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../src/async.cc:4:
npm error ../../node-addon-api/napi.h:1147:39: error: in-class initializer for static data member is not a constant expression
npm error 1147 | static const napi_typedarray_type unknown_array_type = static_cast<napi_typedarray_type>(-1);
npm error | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../../node-addon-api/napi.h:1147:60: note: integer value -1 is outside the valid range of values [0, 15] for the enumeration type 'napi_typedarray_type'
npm error 1147 | static const napi_typedarray_type unknown_array_type = static_cast<napi_typedarray_type>(-1);
npm error | ^
npm error 1 error generated.
npm error make: *** [keytar.target.mk:126: Release/obj.target/keytar/src/async.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/7hnbd3z2flnqh17fh3sbk0srpn6zvzck-nodejs-22.19.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
npm error gyp ERR! System Darwin 25.0.0
npm error gyp ERR! command "/nix/store/7hnbd3z2flnqh17fh3sbk0srpn6zvzck-nodejs-22.19.0/bin/node" "/nix/store/7hnbd3z2flnqh17fh3sbk0srpn6zvzck-nodejs-22.19.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /nix/var/nix/builds/nix-build-rust-analyzer-0.3.2593.drv-1427-3664896792/code/node_modules/keytar
npm error gyp ERR! node -v v22.19.0
npm error gyp ERR! node-gyp -v v11.2.0
npm error gyp ERR! not ok
npm error Log files were not written due to an error writing to the directory: /nix/store/cvds1v4xbylkf7a8j23phkjlq411w1mb-rust-analyzer-0.3.2593-npm-deps/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Additional context
This package does successfully build on x86_64-linux. I've only reproduced the failure on aarch64-darwin (see my system metadata below).
I used git bisect with the --first-parent flag to determine that this was caused by #444862: that is, the build failure occurs on commit 15ed8f7 and does not occur on commit ee5dae5.
System metadata
- system:
"aarch64-darwin"
- host os:
Darwin 25.0.0, macOS 26.0.1
- multi-user?:
yes
- sandbox:
no
- version:
nix-env (Determinate Nix 3.11.2) 2.31.1
- channels(root):
"nixpkgs"
- nixpkgs:
/nix/store/ybmnblw90230yl4p0l18ghwx9ry597bz-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Nixpkgs version
Steps to reproduce
aarch64-darwinmachine.nix-build -A vscode-extensions.rust-lang.rust-analyzer.Can Hydra reproduce this build failure?
I don't know; I keep getting 500 Internal Server Error when I try to enter the package name into the https://hydra.nixos.org/ search bar.
Link to Hydra build job
No response
Relevant log output
Additional context
This package does successfully build on
x86_64-linux. I've only reproduced the failure onaarch64-darwin(see my system metadata below).I used
git bisectwith the--first-parentflag to determine that this was caused by #444862: that is, the build failure occurs on commit 15ed8f7 and does not occur on commit ee5dae5.System metadata
"aarch64-darwin"Darwin 25.0.0, macOS 26.0.1yesnonix-env (Determinate Nix 3.11.2) 2.31.1"nixpkgs"/nix/store/ybmnblw90230yl4p0l18ghwx9ry597bz-sourceNotify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.