-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Node shebang remains unpatched for some binaries #155
Comments
What is the nodejs and npm version you are using? |
My flake is currently pinned to nixpkgs@ccb90fb which has nodejs version 14.19.1 and npm version 6.14.16 flake.lock{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1648297722,
"narHash": "sha256-W+qlPsiZd8F3XkzXOzAoR+mpFqzm3ekQkJNa+PIh1BQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "0f8662f1319ad6abf89b3380dd2722369fc51ade",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1649117019,
"narHash": "sha256-ID7nw/8MDgqj/cbJ0wy6AtQ9wp58hSnE6+weZwuHnso=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ccb90fb9e11459aeaf83cc28d5f8910816d90dd0",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-21.11",
"type": "indirect"
}
},
"npmlock2nix": {
"flake": false,
"locked": {
"lastModified": 1648735462,
"narHash": "sha256-G22WBttdFoWp7E/YvGfePOc+W+ZsQGw+IwpFbAwJNeI=",
"owner": "nix-community",
"repo": "npmlock2nix",
"rev": "dd2897c3a6e404446704a63f40b9a29fa0acf752",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "npmlock2nix",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"npmlock2nix": "npmlock2nix",
"terminalizer-source": "terminalizer-source"
}
},
"terminalizer-source": {
"flake": false,
"locked": {
"lastModified": 1587238889,
"narHash": "sha256-deYp2WCw/ur9XCO1MsOPx+qXE/MKavPxIGbNhlgPYoU=",
"owner": "faressoft",
"repo": "terminalizer",
"rev": "fb079fc3e4a2a7e4939c65f9fe29c7fc96e1a73d",
"type": "github"
},
"original": {
"owner": "faressoft",
"repo": "terminalizer",
"type": "github"
}
}
},
"root": "root",
"version": 7
} |
Nevermind, I should have looked through some other issues beforehand. I see that node >= 15 is not yet supported. Maybe this could be added to the README? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working on packaging terminalizer, but I'm having some difficulties with webpack.
The issue seems to be that the node shebang doesn't get patched. After messing around in
node_modules/.bin/
from--keep-failed
, I also found thatjson5
,electron
andatob
remains unpatched.Some hacks I've tried is to overwrite the webpack binary with the one from nixpkgs through
preInstallLinks
, however it doesn't seem to want to override the existing binaries nor directories (implementation detail i guess?). I've also tried overriding the build command to use nixpkgs webpack directly, but I didn't really figure that one out. None of these hacks really seem to address the root issue though, which I guess would be "why does some binaries escape patchShebang?".Might be the same issue as #129
Flake for debugging
The text was updated successfully, but these errors were encountered: