-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
npmHooks.npmConfigHook: Fix nodeSrc
directly use nodejs
#381409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
FirelightFlagboy
wants to merge
1
commit into
NixOS:staging
Choose a base branch
from
FirelightFlagboy:fix-node-src-dir-npm-config-hook
base: staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
npmHooks.npmConfigHook: Fix nodeSrc
directly use nodejs
#381409
FirelightFlagboy
wants to merge
1
commit into
NixOS:staging
from
FirelightFlagboy:fix-node-src-dir-npm-config-hook
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`nodeSrc` was set to the source of `nodejs`, from my understanding `node-gyp` use `npm_config_nodedir` (the value of `nodeSrc`) to search for headers file in the `include` directory. But the source of `nodejs` does not provide the said folder causing error like: ``` WARN read config.gypi ENOENT: no such file or directory, open '/nix/store/akcrla03vhw2hhdd6d5fwkbglincjvvy-nodejs-22.13.1-source/include/node/config.gypi' ``` Fix NixOS#372605
FirelightFlagboy
added a commit
to FirelightFlagboy/parsec-cloud-nix
that referenced
this pull request
Feb 12, 2025
- Like for the update script, we need to patch the dependencies `xlsx` to use the CDN. That could be simplified if using `importNpmLock`. - Require patched `npmConfigHook` to set the correct `nodeSrc` dir for `node-gyp` to be able to find `config.gypi` (would be fixed by NixOS/nixpkgs#381409). - Build the `canvas` dependencies require system dependencies (`pixman`, `cairo`, `pango`).
FirelightFlagboy
added a commit
to FirelightFlagboy/parsec-cloud-nix
that referenced
this pull request
Feb 17, 2025
- Like for the update script, we need to patch the dependencies `xlsx` to use the CDN. That could be simplified if using `importNpmLock`. - Require patched `npmConfigHook` to set the correct `nodeSrc` dir for `node-gyp` to be able to find `config.gypi` (would be fixed by NixOS/nixpkgs#381409). - Build the `canvas` dependencies require system dependencies (`pixman`, `cairo`, `pango`).
FirelightFlagboy
added a commit
to FirelightFlagboy/parsec-cloud-nix
that referenced
this pull request
Feb 18, 2025
- Like for the update script, we need to patch the dependencies `xlsx` to use the CDN. That could be simplified if using `importNpmLock`. - Require patched `npmConfigHook` to set the correct `nodeSrc` dir for `node-gyp` to be able to find `config.gypi` (would be fixed by NixOS/nixpkgs#381409). - Build the `canvas` dependencies require system dependencies (`pixman`, `cairo`, `pango`).
FirelightFlagboy
added a commit
to FirelightFlagboy/parsec-cloud-nix
that referenced
this pull request
Feb 27, 2025
* feat(update.sh): Update sed line number with formated flake * fix(update.sh): For version `>=3.3` it require applying patches For now we need to patch the `xlsx` dependencies that is vendored to use the cdn instead to work with `prefetch-npm-deps`. This could be solved using `importNpmDeps` * fix(client): native build require heavy patching - Like for the update script, we need to patch the dependencies `xlsx` to use the CDN. That could be simplified if using `importNpmLock`. - Require patched `npmConfigHook` to set the correct `nodeSrc` dir for `node-gyp` to be able to find `config.gypi` (would be fixed by NixOS/nixpkgs#381409). - Build the `canvas` dependencies require system dependencies (`pixman`, `cairo`, `pango`). * refactor: Use `callPackage`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: nodejs
Node.js is a free, open-source, cross-platform JavaScript runtime environment
10.rebuild-darwin: 501-1000
This PR causes many rebuilds on Darwin and should normally target the staging branches.
10.rebuild-darwin: 501+
This PR causes many rebuilds on Darwin and should normally target the staging branches.
10.rebuild-linux: 501+
This PR causes many rebuilds on Linux and should normally target the staging branches.
10.rebuild-linux: 2501-5000
This PR causes many rebuilds on Linux and should target the staging branches.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nodeSrc
was set to the source ofnodejs
, from my understandingnode-gyp
usenpm_config_nodedir
(the value ofnodeSrc
) to search for headers file in theinclude
directory.But the source of
nodejs
does not provide the said folder causing error like:Fix #372605
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.