depot/third_party/nixpkgs/pkgs/development/web/nodejs/gyp-patches-v22-import-sys.patch

15 lines
383 B
Diff
Raw Normal View History

For some reason Node.js v22 has two different GYP versions vendored, and
only one of them contains `import sys`.
--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
+++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
@@ -25,6 +25,7 @@
import os
import re
import subprocess
+import sys
import gyp
import gyp.common
import gyp.xcode_emulation