mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
basedpyright: remove references to nodejs source
The keytar native module's build artifacts contain hardcoded paths to nodejs-slim and nodejs-source, pulling them into the runtime closure. Remove these build artifacts to reduce closure size. AI disclosure: This PR was created with assistance of opencode. Changes were reviewed and built/tested locally.
This commit is contained in:
@@ -49,6 +49,8 @@ buildNpmPackage rec {
|
||||
mv "$out/bin/pyright-langserver" "$out/bin/basedpyright-langserver"
|
||||
# Remove dangling symlinks created during installation (remove -delete to just see the files, or -print '%l\n' to see the target
|
||||
find -L $out -type l -print -delete
|
||||
# Remove native module build artifacts that reference nodejs source
|
||||
rm -rf "$out/lib/node_modules/pyright-root/node_modules/keytar/build"
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
Reference in New Issue
Block a user